-----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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFDKg19JQxWxLw8G9QRArQxAKD4PezcQWL9QRBTy9EiJHyean2XHQCfaMXN
RBBpf89FkmymPTB/E5aPpA4=
=FTsn
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]