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

Balz Schreier balz.schreier at gmail.com
Tue Feb 1 22:35:18 CET 2011


Thanks, but what does this mean? :-)
I don't understand yet...



On Tue, Feb 1, 2011 at 10:12 PM, Michael Wechner
<michael.wechner at wyona.com>wrote:

> 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
>>
>
> --
> Yanel-development mailing list Yanel-development at wyona.com
> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wyona.org/pipermail/yanel-development/attachments/20110201/0c9d932c/attachment.html>


More information about the Yanel-development mailing list