@Override public FatJarAntExporter getAntExporter(IPath antScriptLocation, IPath jarLocation, ILaunchConfiguration launchConfiguration) { return new FatJarRsrcUrlAntExporter(antScriptLocation, jarLocation, launchConfiguration); }
@Override protected void buildANTScript(IPath antScriptLocation, String projectName, IPath absJarfile, String mainClass, SourceInfo[] sourceInfos) throws FileNotFoundException, IOException { File antScriptFile= antScriptLocation.toFile(); buildANTScript(new FileOutputStream(antScriptFile), projectName, absJarfile, mainClass, sourceInfos); copyJarInJarLoader(new File(antScriptFile.getParentFile(), FatJarRsrcUrlBuilder.JAR_RSRC_LOADER_ZIP)); }
document.appendChild(project); addBaseDirProperties(document, project); jar.setAttribute("destfile", substituteBaseDirs(absJarname)); //$NON-NLS-1$s target.appendChild(jar); File jarFile= new File(sourceInfo.absPath); Element fileset= document.createElement("zipfileset"); //$NON-NLS-1$ fileset.setAttribute("dir", substituteBaseDirs(jarFile.getParent())); //$NON-NLS-1$ fileset.setAttribute("includes", jarFile.getName()); //$NON-NLS-1$ jar.appendChild(fileset); } else { Element fileset= document.createElement("fileset"); //$NON-NLS-1$ fileset.setAttribute("dir", substituteBaseDirs(sourceInfo.absPath)); //$NON-NLS-1$ jar.appendChild(fileset);
document.appendChild(project); addBaseDirProperties(document, project); jar.setAttribute("destfile", substituteBaseDirs(absJarname)); //$NON-NLS-1$s target.appendChild(jar); File jarFile= new File(sourceInfo.absPath); Element fileset= document.createElement("zipfileset"); //$NON-NLS-1$ fileset.setAttribute("dir", substituteBaseDirs(jarFile.getParent())); //$NON-NLS-1$ fileset.setAttribute("includes", jarFile.getName()); //$NON-NLS-1$ jar.appendChild(fileset); } else { Element fileset= document.createElement("fileset"); //$NON-NLS-1$ fileset.setAttribute("dir", substituteBaseDirs(sourceInfo.absPath)); //$NON-NLS-1$ jar.appendChild(fileset);
@Override protected void buildANTScript(IPath antScriptLocation, String projectName, IPath absJarfile, String mainClass, SourceInfo[] sourceInfos) throws FileNotFoundException, IOException { File antScriptFile= antScriptLocation.toFile(); buildANTScript(new FileOutputStream(antScriptFile), projectName, absJarfile, mainClass, sourceInfos); copyJarInJarLoader(new File(antScriptFile.getParentFile(), FatJarRsrcUrlBuilder.JAR_RSRC_LOADER_ZIP)); }
@Override public FatJarAntExporter getAntExporter(IPath antScriptLocation, IPath jarLocation, ILaunchConfiguration launchConfiguration) { return new FatJarRsrcUrlAntExporter(antScriptLocation, jarLocation, launchConfiguration); }
@Override public FatJarAntExporter getAntExporter(IPath antScriptLocation, IPath jarLocation, ILaunchConfiguration launchConfiguration) { return new FatJarRsrcUrlAntExporter(antScriptLocation, jarLocation, launchConfiguration); }