Quantcast

[testng-dev] Unable to compile and get target jar from just downloaded Github clone

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[testng-dev] Unable to compile and get target jar from just downloaded Github clone

DBrad
I just downloaded the testng github to a Fedora Linux 64bit virtual machine and attempted to build testng. But it fails to create a target jar file. What is missing from the process?

TestNG website instructions

Build TestNG from source code

TestNG is also hosted on GitHub, where you can download the source and build the distribution yourself:
$ git clone git://github.com/cbeust/testng.git
$ cd testng
$ ./build-with-gradle

You will then find the jar file in the target directory


Doing action and the progress

I did './build-with-gradle'  once and it took 4-5 mins (no target directory) . Then did it again and below is ouput, and still no JAR.

Notice a org.testng.internal.Version error, but based on query to Aug 2015 this generated by the build. I would say not.

user1@xfcefed64 testng]$ ./build-with-gradle
Creating Version file: 6.9.11-SNAPSHOT in /home/user1/ws_testng/testng/src/generated/java/org/testng/internal
:clean
:myDir UP-TO-DATE
:createVersion
:compileGeneratedJava
warning: [options] bootstrap class path not set in conjunction with -source 1.7
1 warning
:processGeneratedResources UP-TO-DATE
:generatedClasses
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
:processResources
:classes
:jar
:javadoc
/home/user1/ws_testng/testng/src/main/java/org/testng/TestNG.java:37: error: cannot find symbol
import org.testng.internal.Version;
                          ^
  symbol:   class Version
  location: package org.testng.internal
/home/user1/ws_testng/testng/src/main/java/org/testng/TestNG.java:1074: warning - @return tag has no arguments.
2 warnings
:javadocJar
:sourcesJar
:signArchives SKIPPED
:assemble
:compileTestJava
warning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
:processTestResources
:testClasses
:test
:check
:build

BUILD SUCCESSFUL

Total time: 1 mins 42.873 secs
[user1@xfcefed64 testng]$ ls
ANNOUNCEMENT.txt   doc               pictures             TESTNG-5.11beta
ant                eclipse-projects  pom.xml              test-output
appveyor.yml       FILES             README               test-output-tests
bin                gradle            README.build         TODO.txt
build              gradlew           README.dev           travis.sh
build.gradle       gradlew.bat       README.md            update-beust.com
build-with-gradle  kobalt            README-publish       upload-beta
build-with-maven   kobaltw           settings.gradle      verify-release
bundle-pom.xml     lib-supplied      sitemap.xml          www
CHANGES.txt        LICENSE.txt       src
CHECKLIST          maven             testng-1.0.dtd.html
deploy-to-maven    NOTES             testng-1.0.dtd.php
[user1@xfcefed64 testng]$

SO WHERE IS the target directory.


Any help would be appreciated.


--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-dev.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [testng-dev] Unable to compile and get target jar from just downloaded Github clone

Cédric Beust ♔-2

I just did the exact same thing in a fresh directory and ./build-with-gradle produced the following jars:

./build/libs/testng-6.9.11-SNAPSHOT-javadoc.jar
./build/libs/testng-6.9.11-SNAPSHOT-sources.jar
./build/libs/testng-6.9.11-SNAPSHOT.jar

-- 
Cédric


On Sun, Feb 28, 2016 at 5:18 AM, <[hidden email]> wrote:
I just downloaded the testng github to a Fedora Linux 64bit virtual machine and attempted to build testng. But it fails to create a target jar file. What is missing from the process?

TestNG website instructions

Build TestNG from source code

TestNG is also hosted on GitHub, where you can download the source and build the distribution yourself:
$ git clone git://github.com/cbeust/testng.git
$ cd testng
$ ./build-with-gradle

You will then find the jar file in the target directory


Doing action and the progress

I did './build-with-gradle'  once and it took 4-5 mins (no target directory) . Then did it again and below is ouput, and still no JAR.

Notice a org.testng.internal.Version error, but based on query to Aug 2015 this generated by the build. I would say not.

user1@xfcefed64 testng]$ ./build-with-gradle
Creating Version file: 6.9.11-SNAPSHOT in /home/user1/ws_testng/testng/src/generated/java/org/testng/internal
:clean
:myDir UP-TO-DATE
:createVersion
:compileGeneratedJava
warning: [options] bootstrap class path not set in conjunction with -source 1.7
1 warning
:processGeneratedResources UP-TO-DATE
:generatedClasses
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
:processResources
:classes
:jar
:javadoc
/home/user1/ws_testng/testng/src/main/java/org/testng/TestNG.java:37: error: cannot find symbol
import org.testng.internal.Version;
                          ^
  symbol:   class Version
  location: package org.testng.internal
/home/user1/ws_testng/testng/src/main/java/org/testng/TestNG.java:1074: warning - @return tag has no arguments.
2 warnings
:javadocJar
:sourcesJar
:signArchives SKIPPED
:assemble
:compileTestJava
warning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
:processTestResources
:testClasses
:test
:check
:build

BUILD SUCCESSFUL

Total time: 1 mins 42.873 secs
[user1@xfcefed64 testng]$ ls
ANNOUNCEMENT.txt   doc               pictures             TESTNG-5.11beta
ant                eclipse-projects  pom.xml              test-output
appveyor.yml       FILES             README               test-output-tests
bin                gradle            README.build         TODO.txt
build              gradlew           README.dev           travis.sh
build.gradle       gradlew.bat       README.md            update-beust.com
build-with-gradle  kobalt            README-publish       upload-beta
build-with-maven   kobaltw           settings.gradle      verify-release
bundle-pom.xml     lib-supplied      sitemap.xml          www
CHANGES.txt        LICENSE.txt       src
CHECKLIST          maven             testng-1.0.dtd.html
deploy-to-maven    NOTES             testng-1.0.dtd.php
[user1@xfcefed64 testng]$

SO WHERE IS the target directory.


Any help would be appreciated.


--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-dev.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-dev.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [testng-dev] Unable to compile and get target jar from just downloaded Github clone

DBrad
Thank you very much.

Being an IDE user rather than maven/gradle the 'build' directory is not a usual place to look for finished JAR files.





On Sunday, February 28, 2016 at 10:24:34 AM UTC-5, Cédric Beust ♔ wrote:

I just did the exact same thing in a fresh directory and ./build-with-gradle produced the following jars:

./build/libs/testng-6.9.11-SNAPSHOT-javadoc.jar
./build/libs/testng-6.9.11-SNAPSHOT-sources.jar
./build/libs/testng-6.9.11-SNAPSHOT.jar

-- 
Cédric


On Sun, Feb 28, 2016 at 5:18 AM, <<a onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;" href="javascript:" target="_blank" rel="nofollow" gdf-obfuscated-mailto="tiYhX52JAwAJ">dav...@...> wrote:
I just downloaded the testng github to a Fedora Linux 64bit virtual machine and attempted to build testng. But it fails to create a target jar file. What is missing from the process?

TestNG website instructions

Build TestNG from source code

TestNG is also hosted on GitHub, where you can download the source and build the distribution yourself:
$ git clone git://<a onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fgithub.com%2Fcbeust%2Ftestng.git\46sa\75D\46sntz\0751\46usg\75AFQjCNHFENGmBPr7h4CfgkkjfN05fo3PeA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fgithub.com%2Fcbeust%2Ftestng.git\46sa\75D\46sntz\0751\46usg\75AFQjCNHFENGmBPr7h4CfgkkjfN05fo3PeA&#39;;return true;" href="http://github.com/cbeust/testng.git" target="_blank" rel="nofollow">github.com/cbeust/testng.git
$ cd testng
$ ./build-with-gradle

You will then find the jar file in the target directory


Doing action and the progress

I did './build-with-gradle'  once and it took 4-5 mins (no target directory) . Then did it again and below is ouput, and still no JAR.

Notice a org.testng.internal.Version error, but based on query to Aug 2015 this generated by the build. I would say not.

user1@xfcefed64 testng]$ ./build-with-gradle
Creating Version file: 6.9.11-SNAPSHOT in /home/user1/ws_testng/testng/src/generated/java/org/testng/internal
:clean
:myDir UP-TO-DATE
:createVersion
:compileGeneratedJava
warning: [options] bootstrap class path not set in conjunction with -source 1.7
1 warning
:processGeneratedResources UP-TO-DATE
:generatedClasses
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
:processResources
:classes
:jar
:javadoc
/home/user1/ws_testng/testng/src/main/java/org/testng/TestNG.java:37: error: cannot find symbol
import org.testng.internal.Version;
                          ^
  symbol:   class Version
  location: package org.testng.internal
/home/user1/ws_testng/testng/src/main/java/org/testng/TestNG.java:1074: warning - @return tag has no arguments.
2 warnings
:javadocJar
:sourcesJar
:signArchives SKIPPED
:assemble
:compileTestJava
warning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
:processTestResources
:testClasses
:test
:check
:build

BUILD SUCCESSFUL

Total time: 1 mins 42.873 secs
[user1@xfcefed64 testng]$ ls
ANNOUNCEMENT.txt   doc               pictures             TESTNG-5.11beta
ant                eclipse-projects  pom.xml              test-output
appveyor.yml       FILES             README               test-output-tests
bin                gradle            README.build         TODO.txt
build              gradlew           README.dev           travis.sh
build.gradle       gradlew.bat       README.md            <a onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fupdate-beust.com\46sa\75D\46sntz\0751\46usg\75AFQjCNEIFK6orR11l2j_eVm0BWio2Xh9Ww&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fupdate-beust.com\46sa\75D\46sntz\0751\46usg\75AFQjCNEIFK6orR11l2j_eVm0BWio2Xh9Ww&#39;;return true;" href="http://update-beust.com" target="_blank" rel="nofollow">update-beust.com
build-with-gradle  kobalt            README-publish       upload-beta
build-with-maven   kobaltw           settings.gradle      verify-release
bundle-pom.xml     lib-supplied      sitemap.xml          www
CHANGES.txt        LICENSE.txt       src
CHECKLIST          maven             testng-1.0.dtd.html
deploy-to-maven    NOTES             testng-1.0.dtd.php
[user1@xfcefed64 testng]$

SO WHERE IS the target directory.


Any help would be appreciated.


--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;" href="javascript:" target="_blank" rel="nofollow" gdf-obfuscated-mailto="tiYhX52JAwAJ">testng-dev+...@googlegroups.com.
To post to this group, send email to <a onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;" href="javascript:" target="_blank" rel="nofollow" gdf-obfuscated-mailto="tiYhX52JAwAJ">testn...@....
Visit this group at <a onmousedown="this.href=&#39;https://groups.google.com/group/testng-dev&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/testng-dev&#39;;return true;" href="https://groups.google.com/group/testng-dev" target="_blank" rel="nofollow">https://groups.google.com/group/testng-dev.
For more options, visit <a onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" href="https://groups.google.com/d/optout" target="_blank" rel="nofollow">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-dev.
For more options, visit https://groups.google.com/d/optout.
Loading...