@Override public String getRootSourceFileName() { return configuration.getTargetFile(); }
@Override public String getRootSourceFileName() { return configuration.getTargetFile(); }
protected String computeQNameForTargetFile() { List<String> computedSourcePath = new ArrayList<String>(); applySourcePathRules(computedSourcePath); String targetSourceFileName = configuration.getTargetFile(); if (targetSourceFileName == null) return null; final File targetSourceFile = FilenameNormalization.normalize(new File(configuration.getTargetFile())); return targetSourceFile.getName(); }
protected String computeQNameForTargetFile() { List<String> computedSourcePath = new ArrayList<String>(); applySourcePathRules(computedSourcePath); String targetSourceFileName = configuration.getTargetFile(); if (targetSourceFileName == null) return null; final File targetSourceFile = FilenameNormalization.normalize(new File(configuration.getTargetFile())); return targetSourceFile.getName(); }
/** * Get the output file path. If {@code -output} is specified, use its value; * otherwise, use the same base name as the target file. * * @return output file path */ private String getOutputFilePath() { if (config.getOutput() == null) return FilenameUtils.removeExtension(config.getTargetFile()).concat(SWF_EXT); else return config.getOutput(); }
/** * Get the output file path. If {@code -output} is specified, use its value; * otherwise, use the same base name as the target file. * * @return output file path */ private String getOutputFilePath() { if (config.getOutput() == null) return FilenameUtils.removeExtension(config.getTargetFile()).concat(SWF_EXT); else return config.getOutput(); }
@Override protected String computeQNameForTargetFile() { List<String> computedSourcePath = new ArrayList<String>(); applySourcePathRules(computedSourcePath); String targetSourceFileName = configuration.getTargetFile(); if (targetSourceFileName == null) return null; final File targetSourceFile = FilenameNormalization.normalize(new File(configuration.getTargetFile())); for (final String sourcePathEntry : computedSourcePath) { final String computedQName = SourcePathManager.computeQName(new File(sourcePathEntry), targetSourceFile); if (computedQName != null) return computedQName; } return null; }
@Override protected String computeQNameForTargetFile() { List<String> computedSourcePath = new ArrayList<String>(); applySourcePathRules(computedSourcePath); String targetSourceFileName = configuration.getTargetFile(); if (targetSourceFileName == null) return null; final File targetSourceFile = FilenameNormalization.normalize(new File(configuration.getTargetFile())); for (final String sourcePathEntry : computedSourcePath) { final String computedQName = SourcePathManager.computeQName(new File(sourcePathEntry), targetSourceFile); if (computedQName != null) return computedQName; } return null; }
/** * Validate target file. * * @throws ConfigurationException */ protected void validateTargetFile() throws ConfigurationException { if(mainCU instanceof ResourceModuleCompilationUnit) return; //when compiling a Resource Module, no target file is defined. final String targetFile = config.getTargetFile(); if (targetFile == null) throw new ConfigurationException.MustSpecifyTarget(null, null, -1); final File file = new File(targetFile); if (!file.exists()) throw new ConfigurationException.IOError(targetFile); }
/** * Validate target file. * * @throws ConfigurationException */ protected void validateTargetFile() throws ConfigurationException { if(mainCU instanceof ResourceModuleCompilationUnit) return; //when compiling a Resource Module, no target file is defined. final String targetFile = config.getTargetFile(); if (targetFile == null) throw new ConfigurationException.MustSpecifyTarget(null, null, -1); final File file = new File(targetFile); if (!file.exists()) throw new ConfigurationException.IOError(targetFile); }
/** * Validate target file. * * @throws MustSpecifyTarget * @throws IOError */ protected void validateTargetFile() throws ConfigurationException { if (mainCU instanceof ResourceModuleCompilationUnit) return; //when compiling a Resource Module, no target file is defined. final String targetFile = config.getTargetFile(); if (targetFile == null) throw new ConfigurationException.MustSpecifyTarget(null, null, -1); final File file = new File(targetFile); if (!file.exists()) throw new ConfigurationException.IOError(targetFile); }
/** * Validate target file. * * @throws MustSpecifyTarget * @throws IOError */ protected void validateTargetFile() throws ConfigurationException { if (mainCU instanceof ResourceModuleCompilationUnit) return; //when compiling a Resource Module, no target file is defined. final String targetFile = config.getTargetFile(); if (targetFile == null) throw new ConfigurationException.MustSpecifyTarget(null, null, -1); final File file = new File(targetFile); if (!file.exists()) throw new ConfigurationException.IOError(targetFile); }
/** * Validate target file. * * @throws MustSpecifyTarget * @throws IOError */ protected void validateTargetFile() throws ConfigurationException { if (mainCU instanceof ResourceModuleCompilationUnit) return; //when compiling a Resource Module, no target file is defined. final String targetFile = config.getTargetFile(); if (targetFile == null) throw new ConfigurationException.MustSpecifyTarget(null, null, -1); final File file = new File(targetFile); if (!file.exists()) throw new ConfigurationException.IOError(targetFile); }
/** * @return Path of the target's parent directory. */ public String getTargetFileDirectory() { final String targetFile = getTargetFile(); if (targetFile == null) return null; final String normalizedTargetFile = FilenameNormalization.normalize(targetFile); return FilenameUtils.getFullPathNoEndSeparator(normalizedTargetFile); }
/** * @return Path of the target's parent directory. */ public String getTargetFileDirectory() { final String targetFile = getTargetFile(); if (targetFile == null) return null; final String normalizedTargetFile = FilenameNormalization.normalize(targetFile); return FilenameUtils.getFullPathNoEndSeparator(normalizedTargetFile); }
private String getOutputFilePath() { if (configuration.getOutput() == null) { final String extension = "." + project.getBackend().getOutputExtension(); return FilenameUtils.removeExtension(configuration.getTargetFile()) .concat(extension); } else { return configuration.getOutput(); } }
/** * Get the output file path. If {@code -output} is specified, use its value; * otherwise, use the same base name as the target file. * * @return output file path */ private String getOutputFilePath() { if (config.getOutput() == null) { final String extension = "." + project.getBackend().getOutputExtension(); return FilenameUtils.removeExtension(config.getTargetFile()).concat( extension); } else return config.getOutput(); }
/** * Get the output file path. If {@code -output} is specified, use its value; * otherwise, use the same base name as the target file. * * @return output file path */ private String getOutputFilePath() { if (config.getOutput() == null) { final String extension = "." + project.getBackend().getOutputExtension(); return FilenameUtils.removeExtension(config.getTargetFile()).concat( extension); } else return config.getOutput(); }
/** * Get the output file path. If {@code -output} is specified, use its value; * otherwise, use the same base name as the target file. * * @return output file path */ private String getOutputFilePath() { if (config.getOutput() == null) { final String extension = "." + project.getBackend().getOutputExtension(); return FilenameUtils.removeExtension(config.getTargetFile()).concat( extension); } else return config.getOutput(); }
/** * Get the output file path. If {@code -output} is specified, use its value; * otherwise, use the same base name as the target file. * * @return output file path */ private String getOutputFilePath() { if (config.getOutput() == null) { final String extension = "." + project.getBackend().getOutputExtension(); return FilenameUtils.removeExtension(config.getTargetFile()).concat( extension); } else return config.getOutput(); }