@Override protected void doCompile() throws EnunciateException, IOException { Enunciate enunciate = getEnunciate(); if (isSwcDownloadable() || this.flexApps.size() > 0 || isAsSourcesDownloadable()) { doFlexCompile(); if (this.flexApps.size() > 0) { enunciate.addArtifact(new FileArtifact(getName(), "flex.app.dir", getSwfCompileDir())); } } }
@Override protected void doCompile() throws EnunciateException, IOException { Enunciate enunciate = getEnunciate(); if (isSwcDownloadable() || this.flexApps.size() > 0) { doFlexCompile(); if (this.flexApps.size() > 0) { enunciate.setProperty("flex.app.dir", getSwfCompileDir()); enunciate.addArtifact(new FileArtifact(getName(), "flex.app.dir", getSwfCompileDir())); } } }
NamedFileArtifact clientArtifact = new NamedFileArtifact(getName(), "as3.client.swc", as3Bundle); clientArtifact.setDescription("The ActionScript source files."); clientArtifact.setPublic(isSwcDownloadable()); as3ClientArtifact.addArtifact(clientArtifact); as3ClientArtifact.setDependencies(clientDeps); enunciate.addArtifact(clientArtifact); if (isSwcDownloadable()) { enunciate.addArtifact(as3ClientArtifact);
@Override public void init(Enunciate enunciate) throws EnunciateException { super.init(enunciate); if (!isDisabled()) { if (this.flexHome == null && (isSwcDownloadable() || !flexApps.isEmpty())) { throw new EnunciateException("To compile a flex app you must specify the Flex SDK home directory, either in configuration, by setting the FLEX_HOME environment variable, or setting the 'flex.home' system property."); } for (FlexApp flexApp : flexApps) { if (flexApp.getName() == null) { throw new EnunciateException("A flex app must have a name."); } String srcPath = flexApp.getSrcDir(); if (srcPath == null) { throw new EnunciateException("A source directory for the flex app '" + flexApp.getName() + "' must be supplied with the 'srcDir' attribute."); } File srcDir = enunciate.resolvePath(srcPath); if (!srcDir.exists()) { throw new EnunciateException("Source directory for the flex app '" + flexApp.getName() + "' doesn't exist."); } } } }
File asSources = null; Enunciate enunciate = getEnunciate(); if (isSwcDownloadable() || !flexApps.isEmpty()) { if (this.flexHome == null) { throw new EnunciateException("To compile a flex app you must specify the Flex SDK home directory, either in configuration, by setting the FLEX_HOME environment variable, or setting the 'flex.home' system property.");