Naman wrote:
> hi vince,
>
> You can pass using -D option maven -D <target>.
Yes... that assigns values to system properties for the JVM that is
running maven.
The problem is this: maven runs ant in a new JVM. This new JVM does not
inherit any of the system properties from the maven JVM...
>
> Can you send me your updated build.xml file so I can figure out this
> error?
I will update sailfin/tools/build.xml later today, so you will be able
to see the problem concretely.
I am adding three overridable properties to build.xml:
netbeans.dist.root.url: the url of the directory that contains the
netbeans zip file.
netbeans.zip.file: the name of the netbeans zip file to download...
the complete url would be
${netbeans.dist.root.url}/${netbeans.zip.file} in ant-speak.
netbeans.install.dir: the root of the a local netbeans install.
vbk
>
> Regards,
> Naman
>
> Vince Kraemer wrote:
>> On this page,
>> http://blogs.sun.com/vkraemer/entry/love_the_freshest_tooling_bits, I
>> outline how to build the tools code using a variation of the
>> "standard" build process.
>>
>> A couple folks have tried it, but have complained about the need to
>> download NetBeans 6.0.1, since they already have NetBeans 6.0.1
>> installed...
>>
>> I started to look at the problem and made a bunch of modifications to
>> the sailfin/tools/build.xml to prevent doing a download, based on a
>> property: netbeans.install.dir
>>
>> I did some testing with ant directly and it works great. If I run
>> the ant build with this property set, the build doesn't do a download
>> to get the NB bits.
>>
>> So, then I tried it out with this command:
>>
>> |maven build-sailfin
>> -Dsailfin.build.dependency.order=ssa-api,common,security,sip-stack,deployment,administration,clb,replication,integration,tools
>> -Dnetbeans.install.dir=/my/netbeans-install
>>
>> And this build still downloads NetBeans bits!
>>
>> The command-line argument did not propagate down to the ant
>> invocation the maven does...
>>
>> So, I figured... get a bigger hammer... So... do the following:
>>
>> setenv ANT_OPTS ||-Dnetbeans.install.dir=/my/netbeans-install
>> ||maven build-sailfin
>> -Dsailfin.build.dependency.order=ssa-api,common,security,sip-stack,deployment,administration,clb,replication,integration,tools
>>
>>
>> And the build still downloads NetBeans bits!
>> ||
>> So, how do I get the command-line arguments from the maven command
>> line ||and/or environment variables ||handed down to the sub-ant
>> process?
>>
>> thanks,
>> vbk
>>
>> |
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_sailfin.dev.java.net
>> For additional commands, e-mail: dev-help_at_sailfin.dev.java.net
>>
>