ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koegel, Michael" <Michael.Koe...@partner.commerzbank.com>
Subject AW: SQLJC
Date Wed, 06 Mar 2002 15:07:46 GMT
Robert,

thanks for the example. I would appreciate to see the whole target.
I'm gonna use DB2 and they are calling their translator sqljc.

Kind Regards,
 Michael

-----Ursprüngliche Nachricht-----
Von: HANDSCHMANN Robert [mailto:HANDSCHMANN@scigames.at]
Gesendet am: Mittwoch, 6. März 2002 15:22
An: 'Ant Users List'
Betreff: AW: SQLJC

Michael,

I don't know exactly what the 'c' stands for at the sqljc. I assume the
compiler
for SQLJ files.
Here is my call to the SQLJ precompiler:

        <apply executable="${sqlj.executable}" taskname="sqlj"
dest="${generated.source.directory}"
               skipemptyfilesets="true" parallel="true" type="file"
               failonerror="true">
            <!-- Set the Environment Classpath -->
            <env key="classpath" path="${sqlj.compile.classpath}"/>
            <!-- SQLJ Arguments -->
            <arg value="-d=${build.directory}"/>              <!-- direcory
for .ser -->
            <arg value="-dir=${generated.source.directory}"/> <!-- direcory
for .java files -->
            <arg value="-compile=no"/>
            <arg value="-checkfilename=yes"/>
            <arg value="-status=true"/>
            <arg value="-user=${sqlj.user}/${sqlj.password}"/>
            <arg value="-url=${sqlj.url}"/>
            <arg value="-linemap=true"/>
            <arg value="-warn=all,noverbose,noprecision,portable,nonulls"/>
            <arg value="-explain=yes"/>
            <!-- SQLJ Files -->
            <fileset dir="${source.directory}">
                <patternset>
                        <include name="**/*.sqlj"/>
                </patternset>
            </fileset>
            <!-- Mapping to OutputFiles -->
            <mapper type="glob" from="*.sqlj" to="*.java"/>
        </apply>

I use the Oracle SQLJ translator. 
Let me know if you want the complete target definition. I've set up some
kind of simulation of the JDeveloper 9i builtin translation process to allow
compiling via JDeveloper, alternatively.

WBR, Robert

> -----Ursprüngliche Nachricht-----
> Von: Koegel, Michael [mailto:Michael.Koegel@partner.commerzbank.com]
> Gesendet am: Mittwoch, 06. März 2002 14:28
> An: ANT User Mailinglist (E-Mail)
> Betreff: SQLJC
> 
> Hi ANT-Users,
> 
> is anybody doing sqljc compilation during their build and can 
> give me an
> example.
> Is there a custom tag to do this?
> 
> Regards,
>  Michael Kögel
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> 

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

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


Mime
View raw message