vendredi 6 mars 2015

how do I see the classpath from ant?



From Ant, how do I enumerate the JAR's being used to build this project?


Looking at the projecthelp for this project:



thufir@doge:~/NetBeansProjects/PointToPointSender$
thufir@doge:~/NetBeansProjects/PointToPointSender$ ant -p build.xml -verbose | grep copylibs
-do-jar-copylibs
-init-macrodef-copylibs
thufir@doge:~/NetBeansProjects/PointToPointSender$


In the build-impl.xml I see:



<property name="copylibs.rebase" value="true"/>
<available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
<condition property="junit.available">
<or>
<available classname="org.junit.Test" classpath="${run.test.classpath}"/>
<available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
</or>
</condition>


as well as, in project.properties the excludes and classpath properties:



excludes=
file.reference.activemq.jar=/home/thufir/jars/apache-activemq-5.11.1/bin/activemq.jar
file.reference.wrapper.jar=/home/thufir/jars/apache-activemq-5.11.1/bin/wrapper.jar
includes=**
jar.compress=false
javac.classpath=\
${libs.javaee-api-7.0.classpath}:\
${file.reference.activemq.jar}:\
${file.reference.wrapper.jar}


From the CLI, will Ant enumerate the JAR's on the classpath?


The ideal command would be: ant -p -show-classpath although I suppose it depends on how Netbeans defines the classpath.




Aucun commentaire:

Enregistrer un commentaire