/** * Create the ANT script based on the information * given in the constructor. * * @param status to report warnings to * @throws CoreException if something went wrong while generating the ant script */ public void run(MultiStatus status) throws CoreException { try { IPath[] classpath= getClasspath(fLaunchConfiguration); String mainClass= getMainClass(fLaunchConfiguration, status); String projectName= fLaunchConfiguration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, ""); //$NON-NLS-1$ buildANTScript(fAntScriptLocation, projectName, fAbsJarfile, mainClass, convert(classpath)); } catch (FileNotFoundException e) { throw new CoreException( new Status(IStatus.ERROR, JavaUI.ID_PLUGIN, Messages.format(FatJarPackagerMessages.FatJarPackageWizard_antScript_error_readingOutputFile, new Object[] { BasicElementLabels.getPathLabel(fAntScriptLocation, true), e.getLocalizedMessage() }) )); } catch (IOException e) { throw new CoreException( new Status(IStatus.ERROR, JavaUI.ID_PLUGIN, Messages.format(FatJarPackagerMessages.FatJarPackageWizard_antScript_error_writingOutputFile, new Object[] { BasicElementLabels.getPathLabel(fAntScriptLocation, true), e.getLocalizedMessage() }) )); } }
/** * Create the ANT script based on the information * given in the constructor. * * @param status to report warnings to * @throws CoreException if something went wrong while generating the ant script */ public void run(MultiStatus status) throws CoreException { try { IPath[] classpath= getClasspath(fLaunchConfiguration); String mainClass= getMainClass(fLaunchConfiguration, status); String projectName= fLaunchConfiguration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, ""); //$NON-NLS-1$ buildANTScript(fAntScriptLocation, projectName, fAbsJarfile, mainClass, convert(classpath)); } catch (FileNotFoundException e) { throw new CoreException( new Status(IStatus.ERROR, JavaUI.ID_PLUGIN, Messages.format(FatJarPackagerMessages.FatJarPackageWizard_antScript_error_readingOutputFile, new Object[] { BasicElementLabels.getPathLabel(fAntScriptLocation, true), e.getLocalizedMessage() }) )); } catch (IOException e) { throw new CoreException( new Status(IStatus.ERROR, JavaUI.ID_PLUGIN, Messages.format(FatJarPackagerMessages.FatJarPackageWizard_antScript_error_writingOutputFile, new Object[] { BasicElementLabels.getPathLabel(fAntScriptLocation, true), e.getLocalizedMessage() }) )); } }