Minimize Ja.NET Forums
 
  Ja.NET Forums  Ja.NET SE  Using  Eclipse Integration
Previous Previous
 
Next Next
New Post 1/7/2009 1:05 AM
  michael.rinner@profactor.at
1 posts
No Ranking


Eclipse Integration 

Hey,

an integration into eclipse ide is possible with ANT by adding the following example target to the build.xml:

<target name="compile_dotnet" depends="compile" description="compile to .NET assemblies">
       
        <!-- Prepare directory -->
       
        <delete dir="${dotnetDir}"/>       
        <mkdir dir="${dotnetDir}"/>
       
        <!-- compile java code from ${source} into ${build_dotnet} -->
       
        <javac
            srcdir="${sourceDir}"           
            debug="on"
            fork="yes"
            executable="${build.jaNET_compiler_path}"           
            verbose="yes"
            destdir="${dotnetDir}">
           
               
        </javac>
    </target>

the build.jaNET_compiler path variable must be set to the javac.exe location in your file system. In case only the .dll file is needed, the line

<compilerarg value="-bam:${build.projectname}.dll"></compilerarg>   

can be added within the <javac> task

best wishes,

Michael

 

 
New Post 1/9/2009 11:26 AM
  Dave
15 posts
No Ranking


Re: Eclipse Integration 

Hi Michael,

Thanks for the post!  

At some point, hopefully in the near future, I'll integrate the Ja.NET SE compiler ( ... its just the Eclipse 3.3 compiler with modifications to generate MSIL as well as JBC) back into the IDE.   Guess I better get Eclipse running on .NET/CLR first tho. :-)

 

Dave

 
Previous Previous
 
Next Next
  Ja.NET Forums  Ja.NET SE  Using  Eclipse Integration
Syndicate