有谁能免费送我个我的邮箱号是多少和密码,求好心人帮帮忙,我有用,表示自已不想注册

1567人阅读
FLEX(15)
jar包下载,http://download.csdn.net/source/1879817
&check out 源码
2.修改flexmojos-maven-plugin/src/main/java/org/sonatype/flexmojos/compiler/ApplicationMojo.java 源文件如下
Copyright 2008 Marvin Herman Froeder
Licensed under the Apache License, Version 2.0 (the &License&); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an &AS IS& BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package org.
* Copyright
The Apache Software Foundation.
* Licensed under the Apache License, Version 2.0 (the &License&);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an &AS IS& BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
import static java.util.Arrays.asL
import java.io.F
import java.io.FileNotFoundE
import java.io.FileR
import java.io.FileW
import java.io.IOE
import java.util.ArrayL
import java.util.A
import java.util.HashS
import java.util.L
import java.util.S
import org.codehaus.plexus.util.DirectoryS
import mons.io.IOU
import org.apache.maven.plugin.MojoExecutionE
import org.apache.maven.plugin.MojoFailureE
import org.patibilitykit.FlexC
import org.sonatype.flexmojos.utilities.FlashPlayerU
import org.sonatype.flexmojos.utilities.MavenU
piler.io.FileU
import flex2.tools.oem.A
import flex2.tools.oem.internal.OEMC
* Goal which compiles the Flex sources into an application for either Flex or AIR depending on the package type.
* The Flex Compiler plugin compiles all ActionScript sources. It can compile the source into 'swf' files. The plugin
* supports 'swf' packaging.
* @author Marvin Herman Froeder (velo.)
* @since 1.0
* @goal compile-swf
* @requiresDependencyResolution
* @phase compile
public class ApplicationMojo
extends AbstractFlexCompilerMojo&Application&
* The file to be compiled. The path must be relative with source folder
* @parameter
protected String sourceF
* The list of modules files to be compiled. The path must be relative with source folder.&BR&
* &moduleFiles&
&module&com/acme/AModule.mxml&/module&
* &/moduleFiles&
* @parameter
private String[] moduleF
private List&File&
private String[] moduleP
* When true, tells flexmojos to use link reports/load externs on modules compilation
* @parameter default-value=&true& expression=&${loadExternsOnModules}&
private boolean loadExternsOnM
* The file to be compiled
protected F
* When true, flexmojos will register register every compiled SWF files as trusted. These SWF files are assigned to
* the local-trusted sandbox. They can interact with any other SWF files, and they can load data from anywhere,
* remote or local. On false nothing is done, so if the file is already trusted it will still as it is.
* @parameter default-value=&true& expression=&${updateSecuritySandbox}&
private boolean updateSecurityS
* Turn on generation of debuggable SWFs. False by default for mxmlc, but true by default for compc.
* @parameter default-value=&false&
* Default locale for libraries. This is useful to non localized applications, just to define swc.rb locale
* @parameter default-value=&en_US&
private String defaultL
* The filename of the SWF movie to create
* @parameter default-value=&${project.build.directory}/${project.build.finalName}.swf&
protected F
protected void fixConfigReport( FlexConfigBuilder configBuilder )
super.fixConfigReport( configBuilder );
configBuilder.addList( new String[] { source.getAbsolutePath() }, &file-specs&, &path-element& );
public void setUp()
throws MojoExecutionException, MojoFailureException
File sourceDirectory = new File( build.getSourceDirectory() );
if ( !sourceDirectory.exists() )
throw new MojoExecutionException( &Unable to found sourceDirectory: & + sourceDirectory );
if ( source == null )
getLog().warn( &Source file was not defined, flexmojos will guess one.& );
source = MavenUtils.resolveSourceFile( project, sourceFile );
if ( source == null )
throw new MojoExecutionException( &Source file not expecified and no default found!& );
if ( !source.exists() )
throw new MojoFailureException( &Unable to find & + sourceFile );
// need to initialize builder before go super
builder = new Application( source );
catch ( FileNotFoundException e )
throw new MojoFailureException( &Unable to find & + source );
if ( moduleFiles != null )
modules = new ArrayList&File&();
DirectoryScanner ds = new DirectoryScanner();
ds.setIncludes(moduleFiles);
ds.setBasedir( sourceDirectory);
ds.setCaseSensitive(true);
ds.scan();
modulePaths = ds.getIncludedFiles();
for ( String modulePath : modulePaths )
File module = new File( sourceDirectory, modulePath );
if ( !module.exists() )
throw new MojoExecutionException( &Module & + module + & not found.& );
modules.add( module );
if ( loadExternsOnModules )
super.linkReport =
super.setUp();
builder.setOutput( getOutput() );
protected void tearDown()
throws MojoExecutionException, MojoFailureException
super.tearDown();
if ( updateSecuritySandbox )
String trustedFile = FileUtil.getCanonicalPath( getOutput() );
updateSecuritySandbox( trustedFile );
if ( modules != null )
compileModules();
protected void compileModules()
throws MojoFailureException, MojoExecutionException
if ( loadExternsOnModules )
configuration.addExterns( new File[] { linkReportFile } );
for ( File module : modules )
getLog().info( &Compiling module & + module );
String moduleName = module.getName();
moduleName = moduleName.substring( 0, moduleName.lastIndexOf( '.' ) );
Application moduleB
moduleBuilder = new Application( module );
catch ( FileNotFoundException e )
throw new MojoFailureException( &Unable to find & + module, e );
setMavenPathResolver( moduleBuilder );
moduleBuilder.setConfiguration( configuration );
moduleBuilder.setLogger( new CompileLogger( getLog() ) );
File outputModule =
new File( build.getDirectory()+&/&+modulePaths[i].substring( 0, modulePaths[i].lastIndexOf( '.' )) + &.& + project.getPackaging() );
File outputPath=outputModule.getParentFile() ;
if((outputPath!=null) && (!outputPath.exists()) ){
outputPath.mkdirs();
moduleBuilder.setOutput( outputModule );
build( moduleBuilder, false );
projectHelper.attachArtifact( project, SWF, moduleName, outputModule );
@FlexCompatibility( minVersion = &3&, maxVersion = &3.1& )
protected void writeResourceBundleFlex30( String[] bundles, String locale, File localePath )
throws MojoExecutionException
// Dont break this method in parts, is a work around
File output = getRuntimeLocaleOutputFile( locale, SWF );
* mxmlc -locale=en_US -source-path=locale/{locale} -include-resource-bundles
* =FlightReservation2,SharedResources,collections ,containers,controls,core,effects,formatters,skins,styles
* -output=src/Resources_en_US.swf
String bundlesString = Arrays.toString( bundles ) //
.replace( &[&, && ) // remove start [
.replace( &]&, && ) // remove end ]
.replace( &, &, &,& ); // remove spaces
ArrayList&File& external = new ArrayList&File&();
ArrayList&File& internal = new ArrayList&File&();
ArrayList&File& merged = new ArrayList&File&();
external.addAll( asList( getGlobalDependency() ) );
external.addAll( asList( getDependenciesPath( &external& ) ) );
external.addAll( asList( getDependenciesPath( &rsl& ) ) );
internal.addAll( asList( getDependenciesPath( &internal& ) ) );
merged.addAll( asList( getDependenciesPath( &compile& ) ) );
merged.addAll( asList( getDependenciesPath( &merged& ) ) );
merged.addAll( asList( getResourcesBundles( locale ) ) );
Set&String& args = new HashSet&String&();
// args.addAll(Arrays.asList(configs));
args.add( &-locale=& + locale );
args.add( &-source-path=& + localePath.getAbsolutePath() );
args.add( &-include-resource-bundles=& + bundlesString );
args.add( &-output=& + output.getAbsolutePath() );
args.add( &-compiler.fonts.local-fonts-snapshot=& + getFontsSnapshot().getAbsolutePath() );
args.add( &-load-config=& + ( configFile == null ? && : configFile.getAbsolutePath() ) );
args.add( &-external-library-path=& + toString( external ) );
args.add( &-include-libraries=& + toString( internal ) );
args.add( &-library-path=& + toString( merged ) );
getLog().debug( &writeResourceBundle calling mxmlc with args: & + args.toString() );
forkMxmlc( args );
runMxmlc( args );
projectHelper.attachArtifact( project, &swf&, locale, output );
@FlexCompatibility( maxVersion = &2& )
private void forkMxmlc( Set&String& args )
throws MojoExecutionException
throw new MojoExecutionException( &Not implemented yet& );
@FlexCompatibility( minVersion = &3&, maxVersion = &3.1& )
private void runMxmlc( Set&String& args )
// Just a work around
// TODO /jira/browse/SDK-15139
piler.mxmlc( args.toArray( new String[args.size()] ) );
private String toString( List&File& libs )
StringBuilder sb = new StringBuilder();
for ( File lib : libs )
if ( sb.length() != 0 )
sb.append( ',' );
sb.append( lib.getAbsolutePath() );
return sb.toString();
protected void writeResourceBundle( String[] bundlesNames, String locale, File localePath )
throws MojoExecutionException
writeResourceBundleFlex30( bundlesNames, locale, localePath );
writeResourceBundleFlex32( bundlesNames, locale, localePath );
@FlexCompatibility( minVersion = &3.2& )
protected void writeResourceBundleFlex32( String[] bundlesNames, String locale, File localePath )
throws MojoExecutionException
Application rbBuilder = new Application();
File output = getRuntimeLocaleOutputFile( locale, SWF );
rbBuilder.setLogger( new CompileLogger( getLog() ) );
rbBuilder.setOutput( output );
rbBuilder.setConfiguration( configuration );
if ( configuration instanceof OEMConfiguration )
OEMConfiguration oemConfiguration = (OEMConfiguration)
oemConfiguration.setIncludeResourceBundles( bundlesNames );
configuration.setLocale( new String[] { locale } );
configuration.setSourcePath( new File[] { localePath } );
configuration.includeLibraries( null );
configuration.addExternalLibraryPath( getDependenciesPath( INTERNAL ) );
configuration.addLibraryPath( getResourcesBundles( locale ) );
build( rbBuilder, true );
if ( configurationReport )
FlexConfigBuilder configBuilder = new FlexConfigBuilder( rbBuilder );
configBuilder.addOutput( output );
configBuilder.write( new File( output.getParent(), project.getArtifactId() + &-& + project.getVersion()
+ &-& + locale + &-config-report.xml& ) );
catch ( Exception e )
throw new MojoExecutionException( &An error has ocurried while recording config-report&, e );
projectHelper.attachArtifact( project, SWF, locale, output );
protected void updateSecuritySandbox( String trustedFile )
throws MojoExecutionException
File fpTrustFolder = FlashPlayerUtils.getTrustDir();
File mavenCfg = new File( fpTrustFolder, &maven.cfg& );
if ( !mavenCfg.exists() )
mavenCfg.createNewFile();
catch ( IOException e )
throw new MojoExecutionException( &Unable to create FlashPayerTrust file: &
+ mavenCfg.getAbsolutePath(), e );
getLog().debug( &maven.cfg location: & + mavenCfg );
// Load maven.cfg
FileReader input = new FileReader( mavenCfg );
String cfg = IOUtils.toString( input );
input.close();
if ( cfg.contains( trustedFile ) )
getLog().debug( &Already trust on & + trustedFile );
getLog().info( &Updating Flash Player Trust directory & + trustedFile );
if ( !cfg.endsWith( &/n& ) )
cfg = cfg + '/n';
// add builder folder
cfg = cfg + trustedFile + '/n';
// Save maven.cfg
FileWriter output = new FileWriter( mavenCfg );
IOUtils.write( cfg, output );
output.flush();
output.close();
catch ( IOException e )
throw new MojoExecutionException( &Unable to edit FlashPayerTrust file: & + mavenCfg.getAbsolutePath(), e );
protected boolean isDebug()
return this.
protected boolean isApplication()
protected String getDefaultLocale()
return this.defaultL
protected File getOutput()
return this.
编译 install module 就可以支持通配符啦
&groupId&org.sonatype.flexmojos&/groupId&
&artifactId&flexmojos-maven-plugin&/artifactId&
&version&${flex-mojos.version}&/version&
&extensions&true&/extensions&
&configuration&
&moduleFiles&
&module&**/*View.mxml&/module&
&module&**/*Dialog.mxml&/module&
&/moduleFiles&
&/configuration&
&/plugins&
&&相关文章推荐
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:527129次
积分:6319
积分:6319
排名:第3517名
原创:91篇
转载:186篇
评论:66条
(1)(9)(1)(4)(1)(4)(1)(1)(6)(8)(1)(1)(1)(4)(1)(3)(1)(3)(3)(1)(2)(2)(1)(1)(3)(5)(2)(3)(1)(1)(5)(8)(3)(1)(2)(4)(2)(3)(1)(1)(1)(1)(1)(2)(2)(3)(1)(8)(2)(6)(5)(17)(7)(2)(5)(9)(5)(1)(2)(5)(1)(14)(15)(20)(1)(1)(2)(3)(1)(9)(2)(4)(12)(1)CHARTS & TRENDS
There was an error trying to load your rating for this title.
Some parts of this page won't work property. Please reload or try later.
I'm Watching This!
Error Please try again!
Added to Your Check-Ins.
La grúa y la jirafa&()
What happens when a port crane and a cute giraffe fell in love with each other?
Atomic Blonde
Superheroes, swimsuits, and female assassins await you in our Summer Movie Guide. Plan your season and take note of the hotly anticipated indie, foreign, and documentary releases, too.
Powered by ZergNet
User Lists
Related lists from IMDb users
a list of 272 titles
created 9&months&ago
Connect with IMDb
Share this Rating
La grúa y la jirafa
Want to share IMDb's rating on your own site? Use the HTML below.
You must be a registered user to use the IMDb rating plugin.
Do you have any images for this title?
What happens when a port crane and a cute giraffe fell in love with each other?
Plot Keywords:
Parents Guide:
Release Date: April 2006 (Argentina)
Production Co:
Show detailed
Sound Mix:
(RCA Sound System)
Aspect Ratio: 1.33 : 1
Frequently Asked Questions
User Reviews
Awards, Prizes and what people says about &The crane and the giraffe&
free download at http://www.archive.org , search Crane giraffe and you can watch it and download it (11mb)&The image can be expanded from the observation of similarities. I supposed that the similarity between a giraffe and crane inspired the artist. The work combines a charming story with attractive illustrations in bold colors and composition. I have a favorable impression of this artist because he follows the basic premise of animation which is to tell a story with movement only. His technique and story-making still have a rough edge, but I look forward to seeing his further growth. & Encouragement Prize for Best Animation - Japan Media Arts Festival&Special mention for animation, by its integrating and shared in common message& Special mention for animation - Escobar Pelicula&Best Animation prize &..to solve synthetically and with simple resources, a history with a strong plea against the discrimination& Best animation - Concurso Cine CipollettiPRIZES and mentions / National:. 3& Tandil, 8& FEJOREL, 1& FESAALP, 5& Festival Nueva Mirada, 3& KINE, 1& Festival Relatos Cortos, 29& UNCIPAR, 3& Festival Escobar, 1& Festival Marcos Juarez, Cipolletti, CrepusculumInternational:. 10& Japan Media Arts Festival, Hida Animation Festival, 2& UNIFEST, Yahoo! Short festival, 1& Riviera Maya underground, 11& Festival online, 5& Festival Microcurt Igualada, Festival Art Digital, festival Punta del Este. Festival Mal CINE, Divercine 2007
1 of 1 people found this review helpful.&
Was this review helpful to you?
Contribute to This Page

我要回帖

更多关于 崩坏3买号送邮箱 的文章

 

随机推荐