ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott_Car...@i2.com
Subject using other compilers
Date Mon, 26 Mar 2001 20:22:26 GMT

One other note, I will still have to use the javac compiler also.  So I
need to be able to call the javac compiler, then the idl2java compiler then
javac again.  I do not know how to call the idl2java compiler.  I tryed the
exec command:

<target name="idl">
    <exec executable="idl2java
{cm.root.dir}/com/i/cm/dna/sis/admin/Admin.idl" />
  </target>

ERROR:
C:\scarter_52_view\CMBuild\Version\Source\build.xml:356: Execute failed:
java.io
.IOException: CreateProcess: "idl2java
../../../CMDNA/Version/Source/DNA/SIS/com
/i2/cm/dna/sis/admin/Admin.idl"  error=2
java.io.IOException: CreateProcess: "idl2java
../../../CMDNA/Version/Source/DNA/
SIS/com/i2/cm/dna/sis/admin/Admin.idl"  error=2
        at java.lang.Win32Process.create(Native Method)
        at java.lang.Win32Process.<init>(Win32Process.java:64)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Runtime.java:275)
        at
org.apache.tools.ant.taskdefs.Execute$CommandLauncher.exec(Execute.ja
va:325)
        at
org.apache.tools.ant.taskdefs.Execute$CommandLauncherProxy.exec(Execu
te.java:431)
        at
org.apache.tools.ant.taskdefs.Execute$WinNTCommandLauncher.exec(Execu
te.java:456)
        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:247)
        at
org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:213)
        at
org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:154)
        at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
        at org.apache.tools.ant.Project.runTarget(Project.java:818)
        at org.apache.tools.ant.Project.executeTarget(Project.java,
Compiled Cod
e)
        at org.apache.tools.ant.Project.executeTargets(Project.java,
Compiled Co
de)
        at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 1 second



                                                                                         
                    Scott_Carter@                                                        
                    i2.com               To:     ant-user@jakarta.apache.org             
                                         cc:                                             
                    03/26/01             Subject:     using other compilers              
                    01:43 PM                                                             
                    Please                                                               
                    respond to                                                           
                    ant-user                                                             
                                                                                         
                                                                                         




I need to use a idl2java compiler from ant.  I was going to use the exec
command but I do not think it will work cross platform.  How can I do this?

Thanks in advance for the help

Scott Carter
Build Configuration Specialist with I2






Mime
View raw message