-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I do not notice anything in your pre/post goals that really jumps out at me as being incorrect. I was faced with a similar situation a week or two ago (http://nagoya.apache.org/eyebrowse/ReadMsg? [EMAIL PROTECTED]&msgNo=10997): multiple packages in a project, and some class files needing to go one place, some to another, etc. I instead used multiple project.xml files (with a single super-project.xml that runs all the smaller project.xml files). Each of these small project.xml files would filter on the input side, using <sourceModifications>, rather than filter on the output side, for instance by moving things around or selectively jar'ing classes, or whatever. Maybe this alternate method might work to get you toward your final result? If you think it will help, let me know off-list and I can send you a couple of the build files for the above-mentioned project.
-Brian


On Mar 11, 2004, at 11:27 PM, Roland Berger wrote:

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>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFAUeN50dKNWt3rpSURAkw2AJ9/IpscJPbMcJldxuF5yikQ0SDtHgCZAfW0
aZPaZ90HErb7CidIdtNEM9g=
=0h/U
-----END PGP SIGNATURE-----


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to