I give. None of this works. On 6/14/06, Max Cooper <[EMAIL PROTECTED]> wrote:
This is a bit of a long-shot, but I have noticed that property inheritance doesn't work as described in the docs, thus requiring each property to be explicitly passed along: <ant antfile="build-helper.xml" target="visualize-whirled-peas"> <!-- should be available automatically, but isn't --> <property name="project.version" value="${project.version}"/> </ant> Maybe a similar technique is required for references? (I haven't tried it, but that is my suggestion.): <ant target="axisWsdl2Java"> <reference torefid="maven.runtime.classpath" refid="maven.runtime.classpath"/> </ant> -Max Lee Meador wrote: > Does anyone have any ideas on why I can't get the maven classpath in my ant > script? > > On 6/13/06, Lee Meador <[EMAIL PROTECTED]> wrote: >> >> Kenney, >> >> Well ... you said it shouldn't matter and it didn't. >> >> I had checked that the -X showed it using 1.1 but who knows? >> >> Thanks. >> >> NOTE TO ALL: More ideas are welcome >> >> -- Lee >> >> >> On 6/13/06, Kenney Westerhof <[EMAIL PROTECTED]> wrote: >> > >> > On Tue, 13 Jun 2006, Lee Meador wrote: >> > >> > Try pasting this in the pom.xml in place of the <ant/> tag. Shouldn't >> > matter, but who knows. >> > >> > Maybe you're still using maven-antrun-plugin 1.0, try adding >> > <version> 1.1</version> below the <plugin> tag. >> > >> > -- Kenney >> > >> > > <path id="axis.classpath"> >> > > <path refid="maven.runtime.classpath"/> >> > > </path> >> > > >> > > <taskdef resource="axis-tasks.properties" classpathref=" >> > axis.classpath" >> > > /> >> > > >> > > >> > > On 6/12/06, Kenney Westerhof < [EMAIL PROTECTED]> wrote: >> > > > >> > > > On Mon, 12 Jun 2006, Lee Meador wrote: >> > > > >> > > > Hi, >> > > > >> > > > I can't reproduce this with 'inheritRefs="true"'. >> > > > >> > > > What do you have in your build.xml? >> > > > >> > > > -- Kenney >> > > > >> > > > > I went to here to see how to let ant get to some maven >> classpaths: >> > > > > >> > > > > >> > http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html >> > > > > >> > > > > I have a build.xml file that I run with this in my pom: >> > > > > >> > > > > <build> >> > > > > <plugins> >> > > > > <plugin> >> > > > > <artifactId>maven-antrun-plugin</artifactId> >> > > > > <executions> >> > > > > <execution> >> > > > > <phase>generate-sources</phase> >> > > > > <goals> >> > > > > <goal>run</goal> >> > > > > </goals> >> > > > > <configuration> >> > > > > <tasks> >> > > > > <ant inheritRefs="true" >> > > > > target="axisWsdl2Java" antfile="build.xml" dir="." /> >> > > > > </tasks> >> > > > > <sourceRoot>${ >> project.build.directory >> > > > > }/generated-sources/java</sourceRoot> >> > > > > </configuration> >> > > > > </execution> >> > > > > </executions> >> > > > > </plugin> >> > > > > </plugins> >> > > > > </build> >> > > > > >> > > > > But it complains that: >> > > > > >> > > > > [ERROR] BUILD ERROR >> > > > > [INFO] >> > > > > >> > >> ------------------------------------------------------------------------ >> > > > > [INFO] Error executing ant tasks >> > > > > >> > > > > Embedded error: The following error occurred while executing this >> > line: >> > > > > [path here]\build.xml:31: Reference maven.runtime.classpath not >> > > > > >> > > > > Any ideas? Is the doc page up to date? >> > > > > >> > > > > Thanks. >> > > > > >> > > > > -- >> > > > > -- Lee Meador >> > > > > Sent from gmail. My real email address is [EMAIL PROTECTED] >> > > > > >> > > > >> > > > -- >> > > > Kenney Westerhof >> > > > http://www.neonics.com >> > > > GPG public key: >> http://www.gods.nl/~forge/kenneyw.key< http://www.gods.nl/%7Eforge/kenneyw.key> >> >> > > > >> > > > >> > --------------------------------------------------------------------- >> > > > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > > > For additional commands, e-mail: [EMAIL PROTECTED] >> > > > >> > > > >> > > >> > > >> > > -- >> > > -- Lee Meador >> > > Sent from gmail. My real email address is [EMAIL PROTECTED] >> > > >> > >> > -- >> > Kenney Westerhof >> > http://www.neonics.com >> > GPG public key: >> http://www.gods.nl/~forge/kenneyw.key< http://www.gods.nl/%7Eforge/kenneyw.key> >> >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> >> >> -- >> >> -- Lee Meador >> Sent from gmail. My real email address is [EMAIL PROTECTED] >> > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]