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:[EMAIL PROTECTED]]
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:[EMAIL PROTECTED]]
> 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:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to