Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
- Created some dummy implementations of the 4 compiler components
- Implemented a version of the compiler mojo, which is able to use the different compiler implementations, depending on the current execution phase and a "useLegacyCompiler" configuration option git-svn-id: https://svn.apache.org/repos/asf/incubator/flex/utilities/trunk@1416169 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Showing
13 changed files
with
355 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -24,6 +24,6 @@ | ||
*/ | ||
public interface Compiler { | ||
|
||
boolean compatible(); | ||
void compile(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You 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.apache.flex.maven.plugins.flex.compiler.asdoc; | ||
|
||
import org.apache.flex.maven.plugins.flex.compiler.Compiler; | ||
import org.codehaus.plexus.component.annotations.Component; | ||
|
||
/** | ||
* Created with IntelliJ IDEA. | ||
* User: cdutz | ||
* Date: 02.12.12 | ||
* Time: 12:40 | ||
*/ | ||
@Component(role = Compiler.class, hint = "asdoc") | ||
public class AsdocCompilerImpl implements Compiler { | ||
|
||
public AsdocCompilerImpl() { | ||
System.out.println("Compiler Instance Created: Asdoc"); | ||
} | ||
|
||
@Override | ||
public void compile() { | ||
System.out.println("Executing Compiler: Asdoc"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You 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.apache.flex.maven.plugins.flex.compiler.compc; | ||
|
||
import org.apache.flex.maven.plugins.flex.compiler.Compiler; | ||
import org.codehaus.plexus.component.annotations.Component; | ||
|
||
/** | ||
* Created with IntelliJ IDEA. | ||
* User: cdutz | ||
* Date: 02.12.12 | ||
* Time: 12:40 | ||
*/ | ||
@Component(role = Compiler.class, hint = "compc") | ||
public class CompcCompilerImpl implements Compiler { | ||
|
||
public CompcCompilerImpl() { | ||
System.out.println("Compiler Instance Created: Compc"); | ||
} | ||
|
||
@Override | ||
public void compile() { | ||
System.out.println("Executing Compiler: Compc"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You 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.apache.flex.maven.plugins.flex.compiler.falcon; | ||
|
||
import org.apache.flex.maven.plugins.flex.compiler.Compiler; | ||
import org.codehaus.plexus.component.annotations.Component; | ||
|
||
/** | ||
* Created with IntelliJ IDEA. | ||
* User: cdutz | ||
* Date: 02.12.12 | ||
* Time: 12:40 | ||
*/ | ||
@Component(role = Compiler.class, hint = "falcon") | ||
public class FalconCompilerImpl implements Compiler { | ||
|
||
public FalconCompilerImpl() { | ||
System.out.println("Compiler Instance Created: Falcon"); | ||
} | ||
|
||
@Override | ||
public void compile() { | ||
System.out.println("Executing Compiler: Falcon"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You 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.apache.flex.maven.plugins.flex.compiler.mxmlc; | ||
|
||
import org.apache.flex.maven.plugins.flex.compiler.Compiler; | ||
import org.codehaus.plexus.component.annotations.Component; | ||
|
||
/** | ||
* Created with IntelliJ IDEA. | ||
* User: cdutz | ||
* Date: 02.12.12 | ||
* Time: 12:40 | ||
*/ | ||
@Component(role = Compiler.class, hint = "mxmlc") | ||
public class MxmlcCompilerImpl implements Compiler { | ||
|
||
public MxmlcCompilerImpl() { | ||
System.out.println("Compiler Instance Created: MXMLC"); | ||
} | ||
|
||
@Override | ||
public void compile() { | ||
System.out.println("Executing Compiler: MXMLC"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.