ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chiah Tong Kiat" <...@silicomp.com.sg>
Subject RE: help with weblogic.ejbc
Date Thu, 03 Apr 2003 02:07:18 GMT
I've managed to solved the problem.  This is a problem when you try to
weblogic.ejbc on jdk1.4.1_02 machine.

This is what I've done to get it to work.

    <java classname="weblogic.ejbc" failonerror="yes" fork="true">
        <sysproperty key="weblogic.home" value="${weblogic.home}"/>
        <arg value="-compiler"/>
        <arg value="${JDK1.3}/bin/javac"/>
        <arg value="${distribution}/tempcih.jar"/>
        <arg value="${distribution}/cih.jar"/>
    </java>

-----Original Message-----
From: Craig Dickson [mailto:craig.dickson@kirus.com] 
Sent: Thursday, April 03, 2003 3:27 AM
To: 'Ant Users List'
Subject: RE: help with weblogic.ejbc

I have a vague recollection that some versions of ejbc call System.exit(0)
at the end of their execution. Which will kill your ant script if it does.

Try adding fork="true" to your java task to get around it.


> -----Original Message-----
> From: Chiah Tong Kiat [mailto:ctk@silicomp.com.sg]
> Sent: Wednesday, April 02, 2003 8:49 AM
> To: user@ant.apache.org
> Subject: help with weblogic.ejbc
> 
> 
> Hi
> 
> 
> 
> 
> Help I'm having problem with invoking task after I've called 
> the weblogic.
> ejbc.  Could anyone tell me why?  I'm unable to invoke the 
> ear task after 
> that?
> 
> 
> 
> 
> Below is an example of what I've done.
> 
> 
> 
> 
> 	<target name="pack_CIH" depends="init">
> 
> 
> 		<delete dir="build/RuleProcessorEJB"/>
> 
> 
> 		<mkdir dir="build/RuleProcessorEJB"/>
> 
> 
> 		<unjar src="lib/ruleprocessorejb.jar" 
> dest="build/RuleProcessorEJB"/>
> 
> 
> 		<jar basedir="build/RuleProcessorEJB" 
> destfile="dist/CIH/ruleprocessorejb.jar" 
> manifest="metadata/manifest_CIH.
> txt"/>
> 
> 
> 		<java classname="weblogic.ejbc" failonerror="yes">
> 
> 
> 			<arg value="dist/CIH/ruleprocessorejb.jar"/>
> 
> 
> 			<arg value="dist/CIH/ruleprocessorejb.jar"/>
> 
> 
> 		</java>
> 
> 
> 
> 
> 		<ear destfile="dist/CIH/RuleProc_CIH.ear" 
> appxml="metadata/application_CIH.xml" manifest="metadata/manifest_cih.
> txt">
> 
> 
> 			<fileset file="dist/CIH/ruleprocessorejb.jar"/>
> 
> 
> 			<fileset 
> file="RuleProcEngine/CIH/dist/cih_rules.jar"/>
> 
> 
> 			<fileset file="lib/rmtcConfig.jar"/>
> 
> 
> 			<fileset file="lib/csscommon.jar"/>
> 
> 
> 		</ear>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



Mime
View raw message