Hello,
I have to more issues with the ant tool which generates an empty project
for use with the ant generator task, but I'm not sure if these are bugs or
features.
1. mda/build.xml:
here the java cartridge generates the code to
${app.root.dir}/common/${java.src.dir} (resolves to
myapp/common/src/java)
but I think it should be
${app.root.dir}/common/${mda.build.dir} (resolves to
myapp/common/target/src/java)
because these Sources are generated each time the mda task is called ,and
not only the first time.
So I think the mda/build.xml should look like this:
<target name="mda">
<taskdef name="andromda" classname
="org.andromda.core.anttasks.AndroMDAGenTask" classpathref="classpath"/>
<andromda lastModifiedCheck="false">
<model uri="${uml.model.path}"/>
<namespace name="default" ignore="false">
<property name="languageMappingsUri" value="file:
${basedir}/${mappings.src.dir}/JavaMappings.xml"/>
</namespace>
<namespace name="java" ignore="false">
<property name="exceptions" value="${app.root.dir}/common/
${mda.build.dir}"/>
<property name="enumerations" value="
${app.root.dir}/common/${mda.build.dir}"/>
<property name="value-objects" value="
${app.root.dir}/common/${mda.build.dir}"/>
</namespace>
...
2. app/build.xml:
The creation of the ear file doesn't seem to work right.
The ejb-Target looks like this (problem in fileset: there's no directory
${basedir}/target containing the wars and jars):
<target name="ear">
<property file="${app.root.dir}/${ejb.dir}/build.properties"/>
<ear destfile="target/${jar.bundle.name}" appxml="
${deployment.descriptor.path}">
<fileset dir="${basedir}/target">
<include name="*.war"/>
</fileset>
<fileset dir="${basedir}/target">
<include name="*.jar"/>
</fileset>
</ear>
</target>
but I think it should look like this (at least it works fine for me):
<target name="ear">
<!-- <property file="${app.root.dir}/${ejb.dir}/build.properties"/>
allready loaded by this build.xml -->
<mkdir dir="target"/>
<ear destfile="target/${jar.bundle.name}" appxml="
${deployment.descriptor.path}">
<fileset dir="${app.root.dir}/${dist.dir}">
<include name="*.war"/>
</fileset>
<fileset dir="${app.root.dir}/${dist.dir}">
<include name="*.jar"/>
</fileset>
</ear>
</target>
Regards
Stefan
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user