Re: Localize taskdef shouldn't compile

Stefan Armbruster <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
In prinicple +1.
Wouldn't it be even better to introduce a "nocompile" (default false)
option to the Localize taskdef? If set to true, it skips the javac call.
This way we would not break any existing code and keep backward
compatibility.

Stefan

Am Mon, 2003-09-08 um 19.04 schrieb Shawn Wilson:
> I would like to make a change to the Barracuda Localize taskdef 
> (org.enhydra.barracuda.taskdefs.Localize) that could affect any users 
> who might be using it in their build.xml files.
> 
> Basically I'd like to remove the lines that invoke the Javac compiler, 
> for a few reasons:
> 
>     1. Localize extends Xmlc taskdef which already provides an option to 
> compile classes (though it is noted it should normally not be used).
>     2. There is no way to tell Localize NOT to compile classes.
>     3. There is no way to pass options to the compiler that Localize 
> uses (or to use a different compiler).
>     4. There already exists the fully-functional <javac> taskdef as part 
> of the core Ant distribution that alleviates problems 2 and 3 above.
> 
> Rather than Localize trying to do everything I think we should limit it 
> to just taking care of localization and XMLC processing and leave the 
> compiling to a separate <javac> task in the build.xml.
> 
> As long as everyone is okay with this, I can make the necessary changes 
> to Localize.java and the Barracuda and BarracudaDiscRack build.xml files.
> 
> Thanks,
> -shawn
> 
> _______________________________________________
> Barracuda mailing list
> [email protected]
> http://barracudamvc.org/lists/listinfo/barracuda
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.