AW: simulating multiple output dirs
Hi Brian Yes, that's the way I'm doing it (see below). I have to say that those sources which are not recompiled after the move, are in the second source dir which is added to 'maven.compile.src.set' in the preGoal to java:compile. May be the second source dir is the problem!? WDYT Thank's Roland preGoal name=java:compile ant:path id=persistent.source.dir location=${persistent.src.dir}/ maven:addPath id=maven.compile.src.set refid=persistent.source.dir/ /preGoal !-- POST GOAL JAVA:COMPILE-- postGoal name=java:compile ant:move todir=${enhancer.input.dir} fileset dir=${maven.build.dest} include name=ch/sardusvini/shop/productspec/business/*.class/ /fileset fileset dir=${maven.build.dest} include name=ch/sardusvini/shop/ordering/business/*.class/ /fileset /ant:move /postGoal -Ursprungliche Nachricht- Von: Brian Enigma [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 12. Marz 2004 02:34 An: Maven Users List Betreff: Re: simulating multiple output dirs -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Are you implementing this as your own custom goal (with a prereq or attainGoal, perhaps), as a postGoal, or by some other method? I would think that a postGoal name=java:compile could contain your Ant move tasks without any of the described problems. -Brian On Mar 11, 2004, at 1:26 PM, Roli bluewin wrote: I would like to move some of the compiled classes to another directory. Thereby I have the following problem After running java:compile I use ant:move to move away some class files. This works but when I rerun java:compile the class files which have been moved away are not recompiled?! Any hints?? -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (Darwin) iD8DBQFAURN/0dKNWt3rpSURAlK3AJwMvmhah9UptoACuVJ1NBNgtZehHQCg0Z5z /R/VlNtQvW/dZmEBm1eVWFE= =iE9U -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven.compile.src.set
Hi all I would like to set the 'maven.compile.src.set' property but don't know how to set it. I tried this in project.properties: maven.compile.src.set=${maven.src.dir},${persistent.src.dir} ^ AND maven.compile.src.set=${maven.src.dir};${persistent.src.dir} ^ But this doesn't seem to work. Do I really have to do it this way?: preGoal name=java:compile path id=gen.java.compile.src.set location=${basedir}/src/gen-java/ maven:addPath id=maven.compile.src.set refid=gen.java.compile.src.set/ /preGoal Thank you Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: bug in war:webapp??
Thanks, thats great news. Brett, the temp dir is setup correctly. All files are there. The problem is with the goal it self. In the mean time I made a goal called webapp:prepare which does exactly the same as the preGoal for war:webapp did. When I invoke the webapp:prepare and war:webapp in a sequence it works good. To me it looks like the war:webapp is only aware of the WEB-INF/**/*.* dir and not of the other files in the temp folder. Well, now I don't need this anymore because I can include and exclude also sources. Cheers Roland -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 30. September 2003 08:07 An: Maven Users List Betreff: Re: AW: bug in war:webapp?? Roland Berger [EMAIL PROTECTED] wrote on 30/09/2003 03:50:09 PM: No, I copy the webapp by a normal ant task to a temp folder because I don't want everything which is in the original webapp in the finall webapp (war goal does not support excludes, only for classes). So, my temp webapp folder The war goal does support includes and excludes of the source, as of rc1. See the refreshed web page: http://maven.apache.org/reference/plugins/war/properties.html is the source folder for the war:webapp goal. Regards Roland -- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xdoc dtd?
Hi I'd like to use docbook for writing maven documentation (docbook plugin). But I don't know which elements are allowed to generate valid xdoc elements. I didn't find any information about an xdoc dtd. I only found a sample document using some elements like document, section etc). Can someone point me to the location where I can find more information about elements which are allowed in xdoc?! Any experiences with the docbook plugin? Thank you Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: bug in war:webapp??
No, I copy the webapp by a normal ant task to a temp folder because I don't want everything which is in the original webapp in the finall webapp (war goal does not support excludes, only for classes). So, my temp webapp folder is the source folder for the war:webapp goal. Regards Roland -Ursprüngliche Nachricht- Von: Brett Porter [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 30. September 2003 00:11 An: 'Maven Users List' Betreff: RE: bug in war:webapp?? Maven.war.src is where it comes from, maven.war.webapp.dir is where it goes to - you said that you set maven.war.src to the temporary folder, which is where it goes to. Is this what you meant? In that case, flip them around :) Cheers, Brett -Original Message- From: Roland Berger [mailto:[EMAIL PROTECTED] Sent: Monday, 29 September 2003 7:57 PM To: Maven Mailinglist Subject: bug in war:webapp?? Hi all I need to copy my webapp to a temporary folder. maven.war.src is set to this temporary folder. The files are copied from my origianal webapp location to the temporary webapp folder in a preGoal of war:webapp. I start the war:webapp goal when the temporary webapp folder does not yet exist (it is created in the preGoal). After the war:webapp goal has finished only the WEB-INF directory an its files are include in maven.war.webapp.dir . When I rerun the goal also the files on the same level like WEB-INF are copied. Is this a bug or is there anything I do not understand? Regards Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
war:webapp war:inplace? and maven rc1
Hi all I'd like to work with the maven rc1 version because it should have some patches and new goals applied to the war goal. I checked out the maven module from cvs.apache.org. The output of the build process tells me that I'm building version beta10. How can I checkout the latest stuff from maven? Does anybody know if war:inplace is commited by Brett? TIA. Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: war:webapp war:inplace? and maven rc1
Hi It's creating directories with ../maven-1.0-beta-10. But I just found out ( don't laught too loud ) it does so because I have set the $MAVEN_HOME like so. Does that mean I did compile the latest maven stuff? Regards Roland -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 24. September 2003 09:25 An: Maven Users List Betreff: Re: war:webapp war:inplace? and maven rc1 If the checkout from CVS tells you you're building beta 10 that's a worry. Can you post the bit that says that. -- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/ Roland Berger [EMAIL PROTECTED] wrote on 24/09/2003 05:09:37 PM: Hi all I'd like to work with the maven rc1 version because it should have some patches and new goals applied to the war goal. I checked out the maven module from cvs.apache.org. The output of the build process tells me that I'm building version beta10. How can I checkout the latest stuff from maven? Does anybody know if war:inplace is commited by Brett? TIA. Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
howto call ant task from maven.xml
Hi all Everywhere I can read that it is easy to call an ant target from maven.xml but after all I did not find an example. I tried it the following way: ?xml version=1.0 encoding=ISO-8859-1? goal name=enhance ant:java fork=yes failonerror=yes output=enhancer.out classname=com.signsoft.ibo.enhancer.Main classpathref=project.class.path arg line=-s classes -d enhanced -v:info/ /ant:java /goal All I get is: Fatal Error [line 3, row 143]: The prefix ant for element ant:java is not bound. Thank you for any example how to do it better. Roland Berger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]