logo       

pb initial values as floats in .doml & building DODS standalone: msg#00019

java.enhydra.general

Subject: pb initial values as floats in .doml & building DODS standalone


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: www.papillon-dictionary.org
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise