Hallo,

I'm working ob target for creating my ejb's which looks so:

<target name="wls_s2g_billing" depends="compile_debug_s2g_billing">
<property name="project.classpath" refid="project.classpath"/>
<property name="src.metainf.folder" value="${dir.src.ejb.billing}/META-INF"/>
<property name="build.metainf.folder" value="${dir.build.ejb.billing}/META-INF"/>
<property name="tmp.build.jar.file" value="${dir.jars.ejb}/tmp_${jar.s2g_billing}"/>
<property name="build.jar.file" value="${dir.jars.ejb}/${jar.s2g_billing}"/>

<mkdir dir="${dir.build.ejb.billing}"/>
<mkdir dir="${build.metainf.folder}"/>

<copy todir="${build.metainf.folder}">
<fileset dir="${src.metainf.folder}">
<include name="**/ejb*"/>
<include name="**/weblogic*"/>
</fileset>
</copy>

<copy todir="${dir.build.ejb.billing}">
<fileset dir="${dir.src.ejb.billing}">
<include name="**/*.class"/>
</fileset>
</copy>

<jar jarfile="${tmp.build.jar.file}" basedir="${dir.build.ejb.billing}">
<manifest>
...
</manifest>
</jar>

<java classname="weblogic.ejbc"
fork="yes"
classpath="${project.classpath}"
dir="${dir.src.ejb.billing}">
<sysproperty key="weblogic.home" value="${wls.home}"/>
<arg line="-compiler ${build.compiler} -keepgenerated ${tmp.build.jar.file} ${build.jar.file}"/>
</java>

<delete file="${tmp.build.jar.file}"/>
<delete dir="${dir.build.ejb.billing}"/>
</target>


This target is working, but only if I set the property dir.jars.ejb absolutely (i.e. dir.jars.ejb = G:/projekte/s2g/JBossWLS/ejb/jarfiles). If I set dir.jars.ejb = ../ejb/jarfiles than I get this error message:

Buildfile: build.xml

prepare:

compile_debug_s2g_billing:
[echo] compile s2g_billing ../ejb/s2g_billing

wls_s2g_billing:
[mkdir] Created dir: G:\projekte\s2g\JBossWLS\ejb\tmp_s2g_billing
[mkdir] Created dir: G:\projekte\s2g\JBossWLS\ejb\tmp_s2g_billing\META-INF
[copy] Copying 3 files to G:\projekte\s2g\JBossWLS\ejb\tmp_s2g_billing\META-INF
[copy] Copying 9 files to G:\projekte\s2g\JBossWLS\ejb\tmp_s2g_billing
[jar] Building jar: G:\projekte\s2g\JBossWLS\ejb\jarfiles\tmp_s2g_billing.jar
[java] ERROR: ejb-jar file: ../ejb/jarfiles/tmp_s2g_billing.jar could not be opened.
[java] Java Result: 1
[delete] Deleting: G:\projekte\s2g\JBossWLS\ejb\jarfiles\tmp_s2g_billing.jar
[delete] Deleting directory G:\projekte\s2g\JBossWLS\ejb\tmp_s2g_billing

Why ejb-jar can't fin tmp_s2g_billing.jar file?


Best Regards,
Rafal


--
To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>

Reply via email to