Tabnine Logo
ExmlConfiguration.getOutputDirectory
Code IndexAdd Tabnine to your IDE (free)

How to use
getOutputDirectory
method
in
net.jangaroo.exml.config.ExmlConfiguration

Best Java code snippets using net.jangaroo.exml.config.ExmlConfiguration.getOutputDirectory (Showing top 6 results out of 315)

origin: CoreMedia/jangaroo-tools

public ExmlConfiguration parseConfig(CmdLineParser parser, ExmlConfiguration config) {
 if (config.getOutputDirectory() == null) {
  System.out.println(extendedUsage(parser, null)); // NOSONAR this is a cmd line tool
  return null;
 }
 if (!config.getOutputDirectory().exists()) {
  throw new IllegalArgumentException("destination directory does not exist: " + config.getOutputDirectory().getAbsolutePath());
 }
 if (config.getResourceOutputDirectory() == null) {
  config.setResourceOutputDirectory(config.getOutputDirectory());
 }
 return config;
}
origin: net.jangaroo/exml-compiler

public ExmlConfiguration parseConfig(CmdLineParser parser, ExmlConfiguration config) {
 if (config.getOutputDirectory() == null) {
  System.out.println(extendedUsage(parser, null)); // NOSONAR this is a cmd line tool
  return null;
 }
 if (!config.getOutputDirectory().exists()) {
  throw new IllegalArgumentException("destination directory does not exist: " + config.getOutputDirectory().getAbsolutePath());
 }
 if (config.getResourceOutputDirectory() == null) {
  config.setResourceOutputDirectory(config.getOutputDirectory());
 }
 return config;
}
origin: CoreMedia/jangaroo-tools

public File computeConfigClassTarget(String configClassName) {
 return CompilerUtils.fileFromQName(getConfigClassPackage(), configClassName, getOutputDirectory(), Jooc.AS_SUFFIX);
}
origin: CoreMedia/jangaroo-tools

@SuppressWarnings({"UnusedDeclaration" })
public File computeGeneratedComponentClassFile(File exmlFile) throws IOException {
 File sourceDir = findSourceDir(exmlFile);
 String qName = CompilerUtils.qNameFromFile(sourceDir, exmlFile);
 String className = ExmlUtils.createComponentClassName(CompilerUtils.className(qName));
 String packageName = CompilerUtils.packageName(qName);
 // compute potential file location of component class in source directory:
 File classFile = CompilerUtils.fileFromQName(packageName, className, sourceDir, Jooc.AS_SUFFIX);
 // component class is only generated if it is not already present as source:
 return classFile.exists()
     ? null
     : CompilerUtils.fileFromQName(packageName, className, getOutputDirectory(), Jooc.AS_SUFFIX);
}
origin: net.jangaroo/exml-compiler

public ConfigClassRegistry(final ExmlConfiguration config) throws IOException {
 this.config = config;
 sourcePathInputSource = PathInputSource.fromFiles(config.getSourcePath(), new String[0], true);
 ParserOptions parserOptions = new CCRParserOptions();
 jangarooParser = new JangarooParser(parserOptions, new StdOutCompileLog()) {
  @Override
  protected InputSource findSource(String qname) {
   InputSource inputSource = super.findSource(qname);
   if (inputSource != null) {
    // A regular source file (not a generated file) has been found. Use it.
    return inputSource;
   }
   // Just in case the requested class is a class
   // that is generated from an EXML file, regenerate the file before
   // it is too late. This will only affect generated files, so it is pretty safe.
   tryGenerateClass(qname);
   // Just in case the source was not found on the first attempt, fetch it again.
   return super.findSource(qname);
  }
 };
 List<File> fullClassPath = new ArrayList<File>(config.getClassPath());
 fullClassPath.add(config.getOutputDirectory());
 InputSource classPathInputSource = PathInputSource.fromFiles(fullClassPath,
  new String[]{"", JangarooParser.JOO_API_IN_SWC_DIRECTORY_PREFIX}, false);
 jangarooParser.setUp(sourcePathInputSource, classPathInputSource);
 jangarooParser.setCompilableSuffixes(Collections.singletonList(Jooc.AS_SUFFIX));
 exmlConfigPackageXsdGenerator = new ExmlConfigPackageXsdGenerator();
}
origin: CoreMedia/jangaroo-tools

public ConfigClassRegistry(final ExmlConfiguration config) throws IOException {
 this.config = config;
 sourcePathInputSource = PathInputSource.fromFiles(config.getSourcePath(), new String[0], true);
 ParserOptions parserOptions = new CCRParserOptions();
 jangarooParser = new JangarooParser(parserOptions, new StdOutCompileLog()) {
  @Override
  protected InputSource findSource(String qname) {
   InputSource inputSource = super.findSource(qname);
   if (inputSource != null) {
    // A regular source file (not a generated file) has been found. Use it.
    return inputSource;
   }
   // Just in case the requested class is a class
   // that is generated from an EXML file, regenerate the file before
   // it is too late. This will only affect generated files, so it is pretty safe.
   tryGenerateClass(qname);
   // Just in case the source was not found on the first attempt, fetch it again.
   return super.findSource(qname);
  }
 };
 List<File> fullClassPath = new ArrayList<File>(config.getClassPath());
 fullClassPath.add(config.getOutputDirectory());
 InputSource classPathInputSource = PathInputSource.fromFiles(fullClassPath,
  new String[]{"", JangarooParser.JOO_API_IN_JAR_DIRECTORY_PREFIX}, false);
 jangarooParser.setUp(sourcePathInputSource, classPathInputSource);
 exmlConfigPackageXsdGenerator = new ExmlConfigPackageXsdGenerator();
}
net.jangaroo.exml.configExmlConfigurationgetOutputDirectory

Popular methods of ExmlConfiguration

  • <init>
  • computeConfigClassTarget
  • findSourceDir
  • getConfigClassPackage
  • getSourceFiles
  • getValidationMode
  • setClassPath
  • setConfigClassPackage
  • setOutputDirectory
  • setResourceOutputDirectory
  • setSourcePath
  • computeGeneratedComponentClassFile
  • setSourcePath,
  • computeGeneratedComponentClassFile,
  • getClassPath,
  • getExtAsJar,
  • getLog,
  • getResourceOutputDirectory,
  • getSourcePath,
  • isConvertToMxml,
  • isKeepExmlFiles

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • getSystemService (Context)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now