Re: Re: dods 5.1, Dods task in build.xml pb
"Sinisa Milosevic" <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Please, use outputDir parameter for output directory instead of output.
You can use additional parameters for creating documentation (pdf, html, xmi, ptl) and action parameter to choose DODS action:
* dods:build_all - to create all sql files and java classes.
* dods:sql - to create only sql files.
* dods:java -to create only java files and to compile them.
* dods:javaNoCompile -To create only java files and not to compile them.
* dods:noCompile -To create SQL files and java files and not to compile them.
* dods:build_all_split - to create all sql files and java classes and to compile it. SQL files will be divided into separate files using SQLSplitter
* dods:sqlsplit - to create only sql files and separate in different files using SQLSplitter.
* dods:noCompileSplit - To create SQL files and separate sql commands using SQLSplitter and java files and not to compile them.
Default (build_all)
Also dods supports templateSet paramater to set template set (default is Standard) and force (true/false) to overwrite generated code or not.
Regards,
Sinisa Milosevic
Together Serbia
----- Original Message -----
From: Mathieu MANGEOT-NAGATA
To: Enhydra
Sent: Wednesday, June 25, 2003 2:29 AM
Subject: Enhydra: Re: dods 5.1, Dods task in build.xml pb
Hi,
I went further in reading the Ant TaskDef api:
enhydra5.1/doc/AntTask/org/enhydra/ant/taskdefs/Dods.html
And I saw that the parameter is now called domlfile instead of doml.
You should change it in the doc and the example.
So I changed to domlfile but I still have an error:
BUILD FAILED
file:/Projects/PapillonDev/build.xml:157: The <dods> task doesn't support the "outdir" attribute.
This time, I don't know why because this parameter is indicated in the API.
Thank for your help.
Mathieu
On Wednesday, June 25, 2003, at 09:17 AM, Mathieu MANGEOT-NAGATA wrote:
Hello,
I am trying to upgrade from enhydra5.0 to enhydra5.1 because I would like to use the new
dods.
I compiled and installer enhydra5.1 with no problems.
But when I tried to compile my enhydra project with the new enhydra, I found an
error in the build.xml file.
Extracts from the build.xml file:
<taskdef name="dods" classname="org.enhydra.ant.taskdefs.Dods"/>
...
...
<target name="dods" depends="prepare" if="dods.doml">
<mkdir dir="${dodsbuild.dir}"/>
<dods doml="${dir.project}/${dods.doml}"
outdir="${dodsbuild.dir}" />
<copy todir="${dir.classes}">
<fileset dir="${dodsbuild.dir}/classes" />
</copy>
</target>
...
And I have this error:
-----------------------------
ant
Buildfile: build.xml
dods:
BUILD FAILED
file:/Projects/PapillonDev/build.xml:157: The <dods> task doesn't support the "doml" attribute.
-----------------------------
but in the doc, it is written to use the doml parameter:
Examples
<dods doml="${basedir}/discRack.doml"
outdir="${basedir}/src"/>
Mathieu MANGEOT-NAGATA
Visiting Researcher National Institute of Informatics
Hitotsubashi 2-1-2-1913 Chiyoda-ku Tokyo 101-8430 Japan
Tel: +81-3-4212-2672 Fax: +81-3-3556-1916
http://www-clips.imag.fr/geta/mathieu.mangeot
Papillon project: http://www.papillon-dictionary.org