Changeset 292
- Timestamp:
- 04/17/07 13:02:08 (5 years ago)
- Files:
-
- trunk/anttasks/.classpath (modified) (1 diff)
- trunk/anttasks/build-tangoexamples-win32.xml (modified) (3 diffs)
- trunk/anttasks/src/anttasks/Dmd.java (modified) (2 diffs)
- trunk/anttasks/src/anttasks/DmdWindows.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/anttasks/.classpath
r137 r292 3 3 <classpathentry kind="src" path="src"/> 4 4 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> 5 <classpathentry kind="lib" path=" /opt/eclipse/plugins/org.apache.ant_1.6.5/lib/ant.jar"/>5 <classpathentry kind="lib" path="C:/downloads/apache-ant-1.7.0-bin/apache-ant-1.7.0/lib/ant.jar"/> 6 6 <classpathentry kind="output" path="bin"/> 7 7 </classpath> trunk/anttasks/build-tangoexamples-win32.xml
r150 r292 8 8 <property name="compiler.dir" value="C:\" /> 9 9 <property name="compiler.type" value="dmd-windows" /> 10 <property name="tango.dir" value="C:\ projects\tango" />10 <property name="tango.dir" value="C:\dmd\tango" /> 11 11 <property name="tango.examples.dir" value="${tango.dir}\example" /> 12 <property name="tango.examples.hello" value="${tango.examples.dir}\hello" /> 12 13 13 14 14 <target name="resgen" > … … 35 35 mode = "executable" 36 36 compilerdir = "${compiler.dir}" 37 destfile = "${tango.examples.dir}/@{bldtrg} "37 destfile = "${tango.examples.dir}/@{bldtrg}.exe" 38 38 cleanup = "true" 39 39 > … … 59 59 60 60 <target name="compile" > 61 <compile bldtrg="argparser" /> 62 <compile bldtrg="chainsaw" /> 63 <compile bldtrg="composite" /> 64 <compile bldtrg="filebubbler" /> 65 <compile bldtrg="filecat" /> 66 <compile bldtrg="filecopy" /> 67 <compile bldtrg="filescan" /> 68 <compile bldtrg="formatalign" /> 69 <compile bldtrg="formatindex" /> 70 <compile bldtrg="hello" /> 71 <compile bldtrg="homepage" /> 72 <compile bldtrg="httpget" /> 73 <compile bldtrg="httpserver" /> 74 <compile bldtrg="lineio" /> 75 <compile bldtrg="localetime" /> 76 <!--compile bldtrg="localtime" /--> 77 <compile bldtrg="logging" /> 78 <compile bldtrg="mmap" /> 79 <compile bldtrg="randomio" /> 80 <compile bldtrg="servlets" /> 81 <compile bldtrg="servletserver" /> 82 <compile bldtrg="sockethello" /> 83 <compile bldtrg="socketserver" /> 84 <compile bldtrg="stdout" /> 85 <compile bldtrg="token" /> 86 <compile bldtrg="unifile" /> 61 <compile bldtrg="console/hello"/> 87 62 </target> 88 63 trunk/anttasks/src/anttasks/Dmd.java
r155 r292 38 38 BufferedReader reader = new BufferedReader( new FileReader( modulesFile )); 39 39 String line = null; 40 Pattern pattern = Pattern.compile("^import +([a-zA-Z0-9_.]+)$"); 40 //TODO - optimize this 41 Pattern pattern = Pattern.compile("^import\\s+(.*?)\\s+\\((.*?)\\)"); 41 42 42 43 for( File file : dTask.mMainModules ){ … … 49 50 continue; 50 51 } 51 String moduleName = matcher.group( 1);52 if( moduleName.e quals("object")){52 String moduleName = matcher.group(2); 53 if( moduleName.endsWith(".di")){ 53 54 continue; 54 55 } 55 //System.out.println( "dep mod : "+moduleName );56 System.out.println( "dep mod : "+moduleName ); 56 57 57 boolean found = false; 58 found = findModule(dTask.mIncludedModules, moduleName, found); 59 found = findModule(dTask.mIncludePaths , moduleName, found); 60 if( !found ){ 61 throw new BuildException( String.format( "Module %s not found.", moduleName )); 62 } 58 dTask.mCompileFiles.add(moduleName); 59 //boolean found = false; 60 //found = findModule(dTask.mIncludedModules, moduleName, found); 61 //found = findModule(dTask.mIncludePaths , moduleName, found); 62 //if( !found ){ 63 // throw new BuildException( String.format( "Module %s not found.", moduleName )); 64 // 65 //} 63 66 } 64 67 } trunk/anttasks/src/anttasks/DmdWindows.java
r149 r292 58 58 59 59 public void calcDependencies(){ 60 60 61 LinkedList<String> cmdline = new LinkedList<String>(); 61 62 cmdline.add( getCompiler() ); … … 82 83 cmdline.add( "-I"+ inc.getAbsolutePath() ); 83 84 } 84 for( File f : dTask.mMainModules ){ 85 for( File f : dTask.mMainModules ){ 85 86 cmdline.add( f.getAbsolutePath() ); 86 87 }
