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]