Changeset 345 for trunk/anttasks/src
- Timestamp:
- 05/07/07 15:44:52 (5 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/anttasks/src/descent/ant/tasks/DmdWindows.java
r329 r345 106 106 107 107 private String getCompiler(){ 108 File compiler = new File( dTask.compilerdir, "dmd \\bin\\dmd.exe" );108 File compiler = new File( dTask.compilerdir, "dmd.exe" ); 109 109 if( !compiler.isFile() ){ 110 throw new BuildException( String.format( "Co mpiler %s is not an existing file", compiler.getAbsolutePath() ));110 throw new BuildException( String.format( "Could not find compiler at %s", compiler.getAbsolutePath() )); 111 111 } 112 112 return compiler.getAbsolutePath(); 113 113 } 114 115 private String getLinker() 116 { 117 File linker = new File( dTask.compilerdir ,"..\\..\\dm\\bin\\link.exe"); 118 if( !linker .isFile() ){ 119 throw new BuildException( String.format( "Could not find linker at %s", linker .getAbsolutePath() )); 120 } 121 return linker .getAbsolutePath(); 122 } 123 114 124 private void compile() { 115 125 LinkedList<String> cmdline = new LinkedList<String>(); … … 172 182 173 183 LinkedList<String> cmdline = new LinkedList<String>(); 174 cmdline.add( dTask.compilerdir + "dm\\bin\\link.exe");184 cmdline.add( getLinker() ); 175 185 176 186 StringBuilder objectBuilder = new StringBuilder(); … … 251 261 sb.append( " " + s ); 252 262 } 253 String libraryPath = dTask.compilerdir + " dmd\\lib;" + dTask.compilerdir + "dm\\lib";263 String libraryPath = dTask.compilerdir + "\\..\\lib;" + dTask.compilerdir + "\\..\\..\\dm\\lib"; 254 264 255 265 dTask.log( String.format("Setting Library path to : %s", libraryPath) , Project.MSG_INFO );
