Changeset 292

Show
Ignore:
Timestamp:
04/17/07 13:02:08 (5 years ago)
Author:
qbert
Message:

Updated for new DMD syntax

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/anttasks/.classpath

    r137 r292  
    33    <classpathentry kind="src" path="src"/> 
    44    <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"/> 
    66    <classpathentry kind="output" path="bin"/> 
    77</classpath> 
  • trunk/anttasks/build-tangoexamples-win32.xml

    r150 r292  
    88    <property name="compiler.dir" value="C:\" /> 
    99    <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" /> 
    1111    <property name="tango.examples.dir" value="${tango.dir}\example" /> 
    12     <property name="tango.examples.hello" value="${tango.examples.dir}\hello" /> 
     12 
    1313     
    1414    <target name="resgen" > 
     
    3535              mode        = "executable" 
    3636              compilerdir = "${compiler.dir}" 
    37               destfile    = "${tango.examples.dir}/@{bldtrg}
     37              destfile    = "${tango.examples.dir}/@{bldtrg}.exe
    3838              cleanup     = "true" 
    3939            > 
     
    5959     
    6060    <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"/> 
    8762    </target> 
    8863 
  • trunk/anttasks/src/anttasks/Dmd.java

    r155 r292  
    3838        BufferedReader reader = new BufferedReader( new FileReader( modulesFile )); 
    3939        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+\\((.*?)\\)"); 
    4142         
    4243        for( File file : dTask.mMainModules ){ 
     
    4950                continue; 
    5051            } 
    51             String moduleName = matcher.group(1); 
    52             if( moduleName.equals("object")){ 
     52            String moduleName = matcher.group(2); 
     53            if( moduleName.endsWith(".di")){ 
    5354                continue; 
    5455            } 
    55             //System.out.println( "dep mod : "+moduleName ); 
     56            System.out.println( "dep mod : "+moduleName ); 
    5657             
    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            //} 
    6366        } 
    6467    } 
  • trunk/anttasks/src/anttasks/DmdWindows.java

    r149 r292  
    5858 
    5959        public void calcDependencies(){ 
     60             
    6061            LinkedList<String> cmdline = new LinkedList<String>(); 
    6162            cmdline.add( getCompiler() ); 
     
    8283                cmdline.add( "-I"+ inc.getAbsolutePath() ); 
    8384            } 
    84             for( File f : dTask.mMainModules ){ 
     85            for( File f : dTask.mMainModules ){                 
    8586                cmdline.add( f.getAbsolutePath() ); 
    8687            }