Package org.apache.jk.ant

Examples of org.apache.jk.ant.Source


            cmd.createArgument().setValue( option );
        }

  for( int i=0; i<srcList.size(); i++ ) {
      Source source=(Source)srcList.elementAt(i);
      File f1=new File(buildDir, source.getPackage());
      File srcF=new File(f1, getTargetFiles(source)[0]);
      cmd.createArgument().setValue( srcF.toString() );
  }
 
  int result=execute( cmd );
View Full Code Here


            else
                linkOptPw.println(libBase + "\\lib\\nwpre.obj");

            // write the objects to link with to the .opt file
            for( int i=0; i<srcList.size(); i++ ) {
                Source source=(Source)srcList.elementAt(i);
                File srcF = source.getFile();
                String name=srcF.getName();
                String targetNA[]=lo_mapper.mapFileName( name );
                if( targetNA!=null )
                    linkOptPw.println( targetNA[0] );
            }
View Full Code Here

        compileList=findCompileList(sourceFiles);
       
        log("Compiling " + compileList.size() + " out of " + sourceFiles.size());
  Enumeration en=compileList.elements();
  while( en.hasMoreElements() ) {
      Source source=(Source)en.nextElement();
      compileSingleFile(source);
  }
    }
View Full Code Here

                project.log("XXX -l" + libsA[i] );
            }
        }
 
  for( int i=0; i<srcList.size(); i++ ) {
      Source sourceObj=(Source)srcList.elementAt(i);
     
      File ff=new File( buildDir, sourceObj.getTargetFile(lo_mapper));
      cmd.createArgument().setValue( ff.toString() );
  }
 
  int result=execute( cmd );
  if( result!=0 ) {
View Full Code Here

    /** Remove all generated files, cleanup
     */
    public void removeOFiles( Vector srcList ) {
        for (int i = 0; i < srcList.size(); i++) {
            //            log( "Checking " + (Source)srcList.elementAt(i));
            Source source=(Source)srcList.elementAt(i);
      String targetNA[]=getTargetFiles(source);
      if( targetNA==null )
    continue;
            String targetDir=source.getPackage();
            File f1=new File( buildDir, targetDir );
            for( int j=0; j<targetNA.length; j++ ) {
                File target=new File( f1, targetNA[j] );
                // Check the dependency
                if( target.exists() ) {
View Full Code Here

     */
    protected Vector findCompileList(Vector srcList) throws BuildException {
        Vector compileList=new Vector();

        for (int i = 0; i < srcList.size(); i++) {
      Source source=(Source)srcList.elementAt(i);
      File srcFile=source.getFile();
    
            if (!srcFile.exists()) {
                throw new BuildException("Source \"" + srcFile.getPath() +
                                         "\" does not exist!", location);
            }

      // Check the dependency
      if( needCompile( source ) )
    compileList.addElement( source );
  }

  if( checkDepend(oldestO, oldestOFile) ) {
      log("Dependency expired, removing "
                + srcList.size() + " .o files and doing a full build ");
      removeOFiles(srcList);
            compileList=new Vector();
      for(int i=0; i<srcList.size(); i++ ) {
    Source source=(Source)srcList.elementAt(i);
    compileList.addElement( source );
      }
            return compileList;
  }

View Full Code Here

        compileList=findCompileList(sourceFiles);

        log("Compiling " + compileList.size() + " out of " + sourceFiles.size());
  Enumeration en=compileList.elements();
  while( en.hasMoreElements() ) {
      Source source=(Source)en.nextElement();
      compileSingleFile(source);
  }
    }
View Full Code Here

            }
            // def file
            linkOptPw.println("/def:link.def");
            // write the objects to link with to the .opt file
            for( int i=0; i<srcList.size(); i++ ) {
                Source source=(Source)srcList.elementAt(i);
                File srcF = source.getFile();
                String name=srcF.getName();
                String targetNA[]=co_mapper.mapFileName( name );
                if( targetNA!=null )
                    linkOptPw.println( targetNA[0] );
            }
View Full Code Here

            cmd.createArgument().setValue( option );
        }

  for( int i=0; i<srcList.size(); i++ ) {
      Source source=(Source)srcList.elementAt(i);
      File f1=new File(buildDir, source.getPackage());
      File srcF=new File(f1, getTargetFiles(source)[0]);
      cmd.createArgument().setValue( srcF.toString() );
  }
 
  int result=execute( cmd );
View Full Code Here

            else
                linkOptPw.println(libBase + "\\lib\\nwpre.obj");

            // write the objects to link with to the .opt file
            for( int i=0; i<srcList.size(); i++ ) {
                Source source=(Source)srcList.elementAt(i);
                File srcF = source.getFile();
                String name=srcF.getName();
                String targetNA[]=lo_mapper.mapFileName( name );
                if( targetNA!=null )
                    linkOptPw.println( targetNA[0] );
            }
View Full Code Here

TOP

Related Classes of org.apache.jk.ant.Source

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.