[Yanel-dev] Not all Java classes end up in the distribution WAR

Michael Wechner michael.wechner at wyona.com
Tue Feb 1 22:12:03 CET 2011


Hi Balz

On 2/1/11 6:21 PM, Balz Schreier wrote:
> hi,
>
> i'm analyzing the following issue, maybe somebody knows the answer 
> already?
>
> I am using Java SE 6 JAXB, and the standard allows you to put a 
> package-info.java into the package folder where all the data beans are 
> located.
> It is crucial that that Java class get compiled as well and put into 
> the final WAR file for deployment.
>
> However, the current standard distribution process of Yanel does not 
> include that java file. Why?

because it doesn't copy all the files into the jar file, but the 
following build file (responsible for compiling resource types)

src/build/resource-types/resource-type.build.xml

is using the parameter

copy.resource-type-configs.to.webapp

which is set within

src/build/(local.)build.properties

which means in order to include

package-info.java

or rather

package-info.class

one needs to enhance

src/build/resource-types/resource-type.build.xml

Cheers

Michael


> It has to be called "package-info.java", so in the final WAR file 
> there should be a "package-info.class".
>
> I'm checking now all the ant targets to find out why it does not get 
> packaged.
>
> Note that the runtime build works fine (testing locally), but when 
> doing the distribution build, it is missing.
>
> Cheers
> Balz



More information about the Yanel-development mailing list