ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Amerige <>
Subject Re: AW: priority question
Date Thu, 30 Aug 2012 17:29:23 GMT
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="${}"/>

<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.

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 []
> Gesendet: Dienstag, 28. August 2012 15:33
> An:
> Cc:
> 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:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message