Hi Denys,
We had the need to specify a Groovy version to have priority over the
context in which we were run, so we did:
<path id="prepend.classpath">
<pathelement path="${custom.dir.path}"/>
<pathelement path="${custom.path.to.jar.file}"/>
</path>
<taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy"
classpathref="prepend.classpath" reverseloader="true"/>
Perhaps you can adapt this to your situation. The
*reverseloader="true"* really means "*prepend *the given classpathref
before other classpaths, including the system classpath." This turns
out to be exceedingly useful. And, while the reverseloader attribute is
marked as deprecated (and has been since the beginning), I have been
assured that it isn't going away.
Regards,
Steve Amerige
SAS Institute, Deployment Development
On 8/30/2012 11:40 AM, Knuplesch, Jürgen wrote:
Show us the ANT-code!
Just set the classpath inside ANT.
-----Ursprüngliche Nachricht-----
Von: LoburDenis [mailto:d.lo...@samsung.com]
Gesendet: Dienstag, 28. August 2012 15:33
An: user@ant.apache.org
Cc: m.shy...@samsung.com
Betreff: priority question
Hello!
I'm engineer in Samsung R&D Center, Kiev..
Below you can find problem I need to be solved:
While processing our product with Ant I have some problems:
The ant script that I write by myself needs to prioritise the additional
libraries, as we use our custom library that has
methods that override the android methods. And I need to specify in the ant
script the priority of using our library above android.jar
library.<compilerarg value="-Xbootclasspath/p:${toString:jars.libs.ref}"/>
command doesn't seem to work. Is there any solution applicable to our problem?
Best regards, Denys Lobur
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org