pb initial values as floats in .doml & building DODS standalone
Mathieu MANGEOT-NAGATA <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
In my DODS .doml file, I want to have a frequency column with a float
initialized with the value 1.0.
But if I put as initial value 1.0, I can't compile the generated dods
classes because
1.0 is not a float.
In order to compile, I have to put 1.0f as initial value.
But if I put 1.0f, I cannot create the SQL table because 1.0f is not an
SQL float default value.
What can I do ?
The resulting SQL script should look like this:
create table "edict_main" (
charcount INTEGER NOT NULL ,
entry VARCHAR(40) DEFAULT '' ,
meaning VARCHAR(199) DEFAULT '' ,
reading VARCHAR(50) DEFAULT '' ,
frequency float DEFAULT 1.0 NOT NULL ,
id INTEGER NOT NULL ,
ObjectId DECIMAL(19,0) NOT NULL PRIMARY KEY,
ObjectVersion INTEGER NOT NULL
);
Then I went on the web and I saw that there were lots of improvement
sin dods
recently. I downloaded dods standalone and tried to compile but I have
this
error and don't know how to solve it:
>cd dods-src5.1
>ant buildAll
Buildfile: build.xml
init:
BUILD FAILED
file:/Users/mangeot/Desktop/dods-src5.1/build.xml:125: taskdef class
net.sf.antcontrib.logic.IfTask cannot be found
Thank you for your help !
Mathieu
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