Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse and Oracle SQLJ
Eclipse and Oracle SQLJ [message #85600] Wed, 13 August 2003 22:59 Go to next message
Eclipse User
Originally posted by: lanceshaw25.hotmail.com

How would I go about using SQLJ with eclipse. SQLJ uses a translator to
preprocess an .sqlj file before sending it to the java compiler.

Any ideas on how this might be done in eclipse?
Re: Eclipse and Oracle SQLJ [message #86148 is a reply to message #85600] Mon, 18 August 2003 12:17 Go to previous messageGo to next message
Eclipse User
Originally posted by: ivan.jensen.flybe.com

On Wed, 13 Aug 2003 16:59:56 -0600, Lance <lanceshaw25@hotmail.com> wrote:

> How would I go about using SQLJ with eclipse. SQLJ uses a translator to
> preprocess an .sqlj file before sending it to the java compiler.
>
> Any ideas on how this might be done in eclipse?
>
>
>


I have set up an external tool builder that runs with a "Rebuild Project",
this calls a target in my ant script using the project properties >
"External Tool Builders". I set this up to run prior to the java builder so
that the sqlj files are translated prior to being compiled. This is
accomplished using the java command.
I then have another ant target that runs after the compilation to copy the
generated .ser files to where I want them to be.

An example command for converting the sqlj is:

<java classname="sqlj.tools.Sqlj"
failonerror="true"
dir="${sqlSrc}"
fork="true">
<classpath>
<pathelement location="${lib}/translator.zip"/>
<pathelement location="${lib}/runtime.jar"/>
<pathelement location="${lib}/classes12.jar"/>
<pathelement location="${java.home}/jre/lib/rt.jar"/>
<pathelement location="${src}/"/>
</classpath>

<arg value="-d=${sqlClasses}"/>
<arg value="-compile=false"/>
<arg value="-explain=true"/>
<arg value="-user=myusername/mypassword"/>
<arg value="-url=jdbc:oracle:thin:@127.0.0.1:1521:mydatabase"/>

<arg value="MyFirstSQLJFile.sqlj"/>
... more sqlj files to convert here
</java>
Re: Eclipse and Oracle SQLJ [message #87771 is a reply to message #86148] Thu, 21 August 2003 15:49 Go to previous message
Eclipse User
Originally posted by: lanceshaw25.hotmail.com

Thanks for the help. I'll give it a try.

"Ivan Jensen" <ivan.jensen@flybe.com> wrote in message
news:oprt3ofilwq1dpvi@localhost...
> On Wed, 13 Aug 2003 16:59:56 -0600, Lance <lanceshaw25@hotmail.com> wrote:
>
> > How would I go about using SQLJ with eclipse. SQLJ uses a translator to
> > preprocess an .sqlj file before sending it to the java compiler.
> >
> > Any ideas on how this might be done in eclipse?
> >
> >
> >
>
>
> I have set up an external tool builder that runs with a "Rebuild Project",
> this calls a target in my ant script using the project properties >
> "External Tool Builders". I set this up to run prior to the java builder
so
> that the sqlj files are translated prior to being compiled. This is
> accomplished using the java command.
> I then have another ant target that runs after the compilation to copy the
> generated .ser files to where I want them to be.
>
> An example command for converting the sqlj is:
>
> <java classname="sqlj.tools.Sqlj"
> failonerror="true"
> dir="${sqlSrc}"
> fork="true">
> <classpath>
> <pathelement location="${lib}/translator.zip"/>
> <pathelement location="${lib}/runtime.jar"/>
> <pathelement location="${lib}/classes12.jar"/>
> <pathelement location="${java.home}/jre/lib/rt.jar"/>
> <pathelement location="${src}/"/>
> </classpath>
>
> <arg value="-d=${sqlClasses}"/>
> <arg value="-compile=false"/>
> <arg value="-explain=true"/>
> <arg value="-user=myusername/mypassword"/>
> <arg value="-url=jdbc:oracle:thin:@127.0.0.1:1521:mydatabase"/>
>
> <arg value="MyFirstSQLJFile.sqlj"/>
> ... more sqlj files to convert here
> </java>
Previous Topic:-> Adjust code assistant
Next Topic:Show bin directory in Package Explorer
Goto Forum:
  


Current Time: Fri Sep 19 05:51:01 GMT 2014

Powered by FUDForum. Page generated in 0.04356 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software