private void scanAsFiles(Map<String, File> sourceFilesByName) { InputSource configPackageInputSource = sourcePathInputSource.getChild( config.getConfigClassPackage().replace('.', File.separatorChar)); if (configPackageInputSource != null) { for (InputSource source : configPackageInputSource.list()) { File file = ((FileInputSource) source).getFile(); if (file.isFile() && file.getName().endsWith(Jooc.AS_SUFFIX)) { try { File sourceDir = getConfig().findSourceDir(file); String qName = CompilerUtils.qNameFromFile(sourceDir, file); ConfigClass actionScriptConfigClass = findActionScriptConfigClass(qName); if (actionScriptConfigClass != null) { addSourceConfigClass(sourceFilesByName, file, actionScriptConfigClass); } } catch (IOException e) { throw new ExmlcException("could not read AS file", e); } } } } }
@SuppressWarnings({"UnusedDeclaration"}) public File computeGeneratedComponentClassFile(File exmlFile) throws IOException { String qName = CompilerUtils.qNameFromFile(findSourceDir(exmlFile), exmlFile); return CompilerUtils.fileFromQName(qName, getOutputDirectory(), Jooc.AS_SUFFIX); }
@SuppressWarnings({"UnusedDeclaration"}) public File computeGeneratedConfigClassFile(File exmlFile) { return computeConfigClassTarget( CompilerUtils.uncapitalize(CompilerUtils.removeExtension(exmlFile.getName()))); }
public File computeConfigClassTarget(String configClassName) { return CompilerUtils.fileFromQName( getConfigClassPackage(), configClassName, getOutputDirectory(), Jooc.AS_SUFFIX); }
private String computeConfigClassNameFromTargetClassName(String targetClassName) { return CompilerUtils.qName( getConfig().getConfigClassPackage(), CompilerUtils.uncapitalize(CompilerUtils.className(targetClassName))); }
private String computeConfigClassName(File exmlFile) { return CompilerUtils.qName( getConfig().getConfigClassPackage(), CompilerUtils.uncapitalize(CompilerUtils.removeExtension(exmlFile.getName()))); }