You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Rohnny Moland <rm...@gmail.com> on 2005/09/15 17:03:27 UTC
[M1.1] Issue when calling an ant target and using property refs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello :)
I have an ant script like this:
<property name="jdo.lib" value="lib/jdo"/>
<path id="compile.path">
<!-- Does not work with maven -->
<pathelement location="${jdo.lib}/odbfe.jar"/>
<!-- works with maven -->
<pathelement location="lib/jdo/odbfe.jar"/>
</path>
<!-- Persistence enhance classes -->
<target name="persistence-enhancer">
<java classname="com.objectdb.Enhancer" fork="false"
classpathref="compile.path">
<arg value="txn.Account"/>
</java>
</target>
..and a maven script like this:
<goal name="persistence-enhance">
<ant:ant dir="${basedir}" antfile="build.xml"
target="persistence-enhancer"/>
</goal>
When I use "lib/jdo/odbfe.jar" in compile.path it works, but I get a
classnotfound error when using "${jdo.lib}/odbfe.jar". I wonder if this
is a known bug or is it not allowed to use refs when calling an ant
target from maven?
BTW: I am using maven 1.1-beta-2.
Thank you.
- --
Rohnny
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFDKY0/JQxWxLw8G9QRAuwHAJ4hMLXwJrp0oTBX1F08pELiiRSj7QCfWnYS
upJRmP/F29yISoAIKRZFG5Q=
=q9ND
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [M1.1] Issue when calling an ant target and using property refs
Posted by Rohnny Moland <rm...@gmail.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This is now solved. In case anyone cares, the reason why the reference
to the property didnt work, was that I had the same property defined in
both maven and ant.
- --
Rohnny
Rohnny Moland wrote:
> Hello :)
>
>
> I have an ant script like this:
> <property name="jdo.lib" value="lib/jdo"/>
>
> <path id="compile.path">
> <!-- Does not work with maven -->
> <pathelement location="${jdo.lib}/odbfe.jar"/>
> <!-- works with maven -->
> <pathelement location="lib/jdo/odbfe.jar"/>
> </path>
>
> <!-- Persistence enhance classes -->
> <target name="persistence-enhancer">
> <java classname="com.objectdb.Enhancer" fork="false"
> classpathref="compile.path">
> <arg value="txn.Account"/>
> </java>
> </target>
>
>
> ..and a maven script like this:
> <goal name="persistence-enhance">
> <ant:ant dir="${basedir}" antfile="build.xml"
> target="persistence-enhancer"/>
> </goal>
>
>
> When I use "lib/jdo/odbfe.jar" in compile.path it works, but I get a
> classnotfound error when using "${jdo.lib}/odbfe.jar". I wonder if this
> is a known bug or is it not allowed to use refs when calling an ant
> target from maven?
>
> BTW: I am using maven 1.1-beta-2.
>
>
> Thank you.
>
- ---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFDKg19JQxWxLw8G9QRArQxAKD4PezcQWL9QRBTy9EiJHyean2XHQCfaMXN
RBBpf89FkmymPTB/E5aPpA4=
=FTsn
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org