예제 #1
0
 // iterates over all the input file names and adds them to the infuser arguments
 // object
 protected void iterateResourceCollections() {
   for (FileSet fileSet : fileSets) {
     String files[] = fileSet.getDirectoryScanner(getProject()).getIncludedFiles();
     for (String file : files) {
       String path = fileSet.getDir(getProject()) + "/" + file;
       try {
         infuserArguments.parseArgument(path);
       } catch (Exception ex) {
         throw new BuildException("Error loading file: " + path, ex);
       }
     }
   }
   for (FileList fileList : fileLists) {
     for (String file : fileList.getFiles(getProject())) {
       String path = fileList.getDir(getProject()) + "/" + file;
       try {
         infuserArguments.parseArgument(path);
       } catch (Exception ex) {
         throw new BuildException("Error loading file: " + path, ex);
       }
     }
   }
 }
예제 #2
0
 public void setMajorVersion(int value) {
   infuserArguments.setMajorVersion(value);
 }
예제 #3
0
 public void setDebugFile(String debug) {
   infuserArguments.setDebugOutputFile(debug);
 }
예제 #4
0
 public void setCFile(String name) {
   infuserArguments.setNativeOutputFile(name);
 }
예제 #5
0
 public void setHFile(String name) {
   infuserArguments.setDefinitionOutputFile(name);
 }
예제 #6
0
 public void setHeaderFile(String name) {
   infuserArguments.setHeaderOutputFile(name);
 }
예제 #7
0
 public void setInfusionFile(String name) {
   infuserArguments.setInfusionOutputFile(name);
 }
예제 #8
0
 public void setName(String name) {
   infuserArguments.setInfusionName(name);
 }