Refering to the comment // In an imported file (and not completely ignoring the project tag *OR*having a preconfigured prefix) this test should be like this instead if (!isInIncludeMode && !isPhase && (context.isIgnoringProjectTag() || (prefix = getTargetPrefix(context)) != null)) {
Maybe i'm getting wrong 2008/11/13 Jean-Louis BOUDART <[EMAIL PROTECTED]> > It seems to be related to this test > if (!isInIncludeMode && context.isIgnoringProjectTag() > && (prefix = getTargetPrefix(context)) != null && !isPhase) > { > > But i don't understand why yet :( > > Any idea? > > 2008/11/13 Stefan Bodewig <[EMAIL PROTECTED]> > >> On 2008-11-13, Jean-Louis BOUDART <[EMAIL PROTECTED]> wrote: >> >> >> > I'll try to give you details >> >> [snip - removed <import phase since you didn't give the file] >> >> > by typing ant -p i can see >> > org.apache.easyant#build-std-java.compile.iLikeToCompileJavaClasses --> >> i >> > like to compile java classes :) >> > org.apache.easyant#build-std-java.myPrefix.plop --> foo bar >> >> This is what I get with Ant trunk: >> >> $ ./build.sh -f ../../Temp/u.xml -p >> Buildfile: c:\Temp\u.xml >> >> Main targets: >> >> compile.iLikeToCompileJavaClasses i like to compile java classes :) >> myPrefix.plop foo bar >> >> This seems to be what you want, I just don't understand why your >> result may be different. Could you please do a diff between your >> ImportTask and ProjectHelper2 and Ant's svn trunk? You must have >> missed/modified some part of trunk that is not related to phases. >> >> Stefan >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >