<property name="x" value="6"/>
<echo>${x}</echo> <!-- will print 6 -->
<var name="x" unset="true"/>
<property name="x" value="12"/>
<echo>${x}</echo> eg.
javac.test.classpath=\
${javac.classpath}:\
${ivy.test.classpath}:\
${build.classes.dir}:\
${libs.junit.classpath}:\
${libs.junit_4.classpath}
where ivy.test.classpath property would be resolved by your ivy task
before the compilation?
I'm not sure how that would influence the IDE's classpath resolution
(but I think it ignores unresolved items, and you add the ivy
classpath yourself)
the ant contrib stuff could be a bit tricky in the sense that the ant
tasks have to be found by the ant building process.
Milos
I see. I've been after a simpler (maybe too simple) solution of
writing the ivy.classpath property into the
nbproject/project.properties file.
>
> What is the difference with javac.test.classpath ? Further more it should
> not work, classpath for compile sources is resolved in
> "-init-macrodef-javac".
AFAIK there's 4 different properties like this one for sources
compilation, one for sources runtime, one for test compilation and for
test runtime.
>
> It is not the same problem but I have a close question. Do you know why
> -init-macrodef-javac is called so early ? It is a dependency of the "init"
> target. I would rather the "compile" one.
No idea. I suppose some 3rd party plugin might need it before the
compile target. But not really sure. The netbeans generated scripts
are a mystery to me mostly.
>
> Nevertheless, the ant contrib variable answer the question very well. I do
> not care that the javac.classpath property is already set, Ican change it at
> the best moment.
Ok. if it works, then fine. I'm a bit worried of the project setup and
headless builds. does thecontrib jar need to be placed on ant
classpath somehow? how will it work with sharable projects?
Milos
I see. I've been after a simpler (maybe too simple) solution of
On 6/23/08, Laurent Forêt <lauren...@gmail.com> wrote:
> It is that I do (in the trunk) for the javac.classpath :
>
> ...
> <propertyfile file="nbproject/project.properties">
> <entry key="javac.classpath" operation="+"
> value="$${ivy.classpath}"/>
> </propertyfile>
> ...
> <propertyfile file="nbproject/project.properties">
> <entry operation="=" key="ivy.classpath"
> value="${ivy.classpath.computed}"/>
> </propertyfile>
writing the ivy.classpath property into the
nbproject/project.properties file.
AFAIK there's 4 different properties like this one for sources
>
> What is the difference with javac.test.classpath ? Further more it should
> not work, classpath for compile sources is resolved in
> "-init-macrodef-javac".
compilation, one for sources runtime, one for test compilation and for
test runtime.
No idea. I suppose some 3rd party plugin might need it before the
>
> It is not the same problem but I have a close question. Do you know why
> -init-macrodef-javac is called so early ? It is a dependency of the "init"
> target. I would rather the "compile" one.
compile target. But not really sure. The netbeans generated scripts
are a mystery to me mostly.
Ok. if it works, then fine. I'm a bit worried of the project setup and
>
> Nevertheless, the ant contrib variable answer the question very well. I do
> not care that the javac.classpath property is already set, Ican change it at
> the best moment.
headless builds. does thecontrib jar need to be placed on ant
classpath somehow?
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="/usr/share/java/lib/ant-contrib-0.3.jar"/>
</classpath>
</taskdef>
in ivybeans i deal with a system property
how will it work with sharable projects?