cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geert Josten <Geert.Jos...@daidalos.nl>
Subject Re: classes in WEB-INF
Date Thu, 19 May 2005 04:48:28 GMT
Here the first 30 lines of the build.xml that I am using inside Eclipse. Compiling the java
sources 
is one-line target, creating the jar more or less a two liner. Creating the war mainly copying
of 
file to get the right files in the war.

HTH,
Geert

PS: ${library.log4j} etc refer to entries in the (local.)build.properties file...

<?xml version="1.0" encoding="utf-8"?>
<project default="jar">

	<property file="local.build.properties" />
	<property file="build.properties" />

	<property name="javadoc.classpath" value="${library.log4j};${library.jintegra}" />

	<target name="compile" description="builds classfiles">
		<javac srcdir="./src" destdir="./bin" />
	</target>

	<target name="jar" depends="compile" description="creates jar">
		<mkdir dir="./dist" />
		<jar destfile="./dist/gps_as.jar" basedir="./bin" excludes="test/**" />
		<copy todir="./cocoon/webapp/WEB-INF/lib">
			<fileset file="./dist/gps_as.jar" />
		</copy>
	</target>

	<target name="war (tomcat)" depends="jar" description="creates warfile with tomcat config">
		<delete dir="./temp/cocoon-webapp" />
		<copy todir="./temp/cocoon-webapp">
			<fileset dir="./cocoon/webapp" />
		</copy>
		<copy file="./config/cocoon_prod.xconf" tofile="./temp/cocoon-webapp/WEB-INF/cocoon.xconf"/>
		<delete file="./temp/cocoon-webapp/WEB-INF/web.xml"/>
		<delete dir="./temp/cocoon-webapp/WEB-INF/logs"/>
		<war destfile="./dist/gps_as_tomcat.war" basedir="./temp/cocoon-webapp" 
webxml="./config/tomcatweb.xml" update="false" />
	</target>



Fab Psycho wrote:

> Hi Geert,
> 
>      It's exactly the solution I need ; that way I could generate a war 
> of my application and there'll be no problem with deploy method.Do you 
> have a sample ant script to do that .class -> jar conversion ?
> 
> Regards,
> Fab
> 
>> From: Geert Josten <Geert.Josten@daidalos.nl>
>> Reply-To: users@cocoon.apache.org
>> To: users@cocoon.apache.org
>> Subject: Re: classes in WEB-INF
>> Date: Wed, 18 May 2005 20:04:56 +0200
>>
>> By the way, I think it is easiest to create an ant task that creates a 
>> jar out of your classes and copies it to the WEB-INF/lib directory. I 
>> am currently doing so, without the need for plugins for eclipse...
>>
>> Cheers
>>
>> Geert Josten wrote:
>>
>>> Hi Fab,
>>>
>>> I recall having seen some feature in either cocoon.xconf or web.xml 
>>> to add paths to the class path...
>>>
>>> Cheers,
>>> Geert
>>>
>>> Fab Psycho wrote:
>>>
>>>> Hi,
>>>>
>>>>    I'm using eclipse to build my classes and it generates classes in 
>>>> myprojet/WEB-INF/classes/org/.... Problem is cocoon is waiting for 
>>>> classes to be in webapp/WEB-INF/classes/org/.... Can I add a 
>>>> directive to my application sitemap to look in application web-inf ?
>>>>
>>>> Sorry if it's a little OT
>>>>
>>>> Regards,
>>>> Fab
>>>>
>>>> _________________________________________________________________
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>>> For additional commands, e-mail: users-help@cocoon.apache.org
>>>>
>>>>
>>>>
>>>
>>
>> -- 
>> =====================================
>> NB: het Daidalos kantoor is sinds 22 april
>> jl. gevestigd op een nieuw adres:
>>
>> Daidalos BV
>> Hoekeindsehof 1 - 4
>> 2665 JZ Bleiswijk
>> tel: +31 (0)10 850 12 00
>> fax: +31 (0)10 850 11 99
>>
>> Bovenstaand adres is tevens het postadres.
>> ======================
>> Geert.Josten@Daidalos.nl
>> IT-consultant at Daidalos BV
>>
>> http://www.daidalos.nl/
>>
>> GPG: 1024D/12DEBB50
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
> 
> _________________________________________________________________
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 
> 

-- 
=====================================
NB: het Daidalos kantoor is sinds 22 april
jl. gevestigd op een nieuw adres:

Daidalos BV
Hoekeindsehof 1 - 4
2665 JZ Bleiswijk
tel: +31 (0)10 850 12 00
fax: +31 (0)10 850 11 99

Bovenstaand adres is tevens het postadres.
======================
Geert.Josten@Daidalos.nl
IT-consultant at Daidalos BV

http://www.daidalos.nl/

GPG: 1024D/12DEBB50

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message