/** * Generate fluid API files. * Finds all Component instances at given urls using reflection. * * @param urls classpath urls to reflect over. * @param outputDirectory source root. * @param log output. * @param globalPreferences * @throws com.artemis.generator.validator.TypeModelValidatorException */ public void generate(Set<URL> urls, File outputDirectory, Log log, FluidGeneratorPreferences globalPreferences) { final AbstractClassCollectStrategy collectStrategy = collectStrategy(urls); generate(collectStrategy.allComponents(), collectStrategy.allFieldProxyStrategies(), outputDirectory, log, globalPreferences); }
@Override public void execute() throws MojoExecutionException, MojoFailureException { prepareGeneratedSourcesFolder(); includeGeneratedSourcesInCompilation(); new FluidGenerator().generate( classpathAsUrls(preferences), generatedSourcesDirectory(), createLogAdapter(), preferences); System.out.flush(); System.err.flush(); }
/** * Generate fluid API files. * Finds all Component instances at given urls using reflection. * * @param urls classpath urls to reflect over. * @param outputDirectory source root. * @param log output. * @param globalPreferences * @throws com.artemis.generator.validator.TypeModelValidatorException */ public void generate(Set<URL> urls, File outputDirectory, Log log, FluidGeneratorPreferences globalPreferences) { final AbstractClassCollectStrategy collectStrategy = collectStrategy(urls); generate(collectStrategy.allComponents(), collectStrategy.allFieldProxyStrategies(), outputDirectory, log, globalPreferences); }
@TaskAction public void fluid() { log.info("Artemis Fluid api plugin started."); prepareGeneratedSourcesFolder(); includeGeneratedSourcesInCompilation(); new FluidGenerator().generate( classpathAsUrls(preferences), generatedSourcesDirectory, createLogAdapter(), preferences); }