| 
| [ATL] Running an ANT file with java [message #58327] | Fri, 17 August 2007 12:01  |  | 
| Eclipse User  |  |  |  |  | Hello everybody, I don't know if this newsgroup is the correct place to post my problem, but
 I will try.
 I have an ANT script (build.xml) that executes several ATL transformations.
 I want to run that build.xml file from java,  but I don't know how. I have
 tried with:
 
 Process proce = Runtime.getRuntime().exec("cmd /c
 "+ant_home+"/bin/ant -buildfile
 c:/eclipse3.3/runtime-New_configuration/Plugin/src/plugin/po pup/actions/build.xml ");
 
 
 
 
 InputStream is = proce.getInputStream();
 
 BufferedReader br = new BufferedReader (new InputStreamReader (is));
 
 
 String aux = br.readLine();
 
 while (aux!=null)
 
 {
 
 aux = br.readLine();
 
 }
 
 
 }catch(Exception e){
 
 System.out.println("Error: "+e.getMessage());
 
 }
 
 The problem is that only the first sentence in the ANT file is executed, but
 not all the script. Why?
 
 Any idea?
 
 Thank you very much in advance
 
 Bea
 |  |  |  | 
|  | 
|  | 
Powered by 
FUDForum. Page generated in 0.55689 seconds