Skip to content

Commit

Permalink
version bump to 0.0.9. move sdk related plugins into repository
Browse files Browse the repository at this point in the history
no sdk update this time that can easily be community effort ;)
but 8 hour in to get this building again...
  • Loading branch information
mb0 committed Mar 10, 2012
1 parent b3788b1 commit ed22282
Show file tree
Hide file tree
Showing 65 changed files with 3,977 additions and 90 deletions.
8 changes: 8 additions & 0 deletions flex4-antsupport/.classpath
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
<classpathentry exported="true" kind="lib" path="lib/flexTasks.jar"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
1 change: 1 addition & 0 deletions flex4-antsupport/.gitignore
@@ -0,0 +1 @@
/target
28 changes: 28 additions & 0 deletions flex4-antsupport/.project
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.axdt.sdk.flex4.antsupport</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
17 changes: 17 additions & 0 deletions flex4-antsupport/META-INF/MANIFEST.MF
@@ -0,0 +1,17 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-SymbolicName: org.axdt.sdk.flex4.antsupport;singleton:=true
Bundle-Version: 0.0.9.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ClassPath: .,
lib/flexTasks.jar
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.core.variables,
org.apache.ant,
org.axdt.sdk.flex4;bundle-version="4.0.0";visibility:=reexport,
org.eclipse.ant.core,
org.axdt.core.ui,
org.eclipse.ui.ide
17 changes: 17 additions & 0 deletions flex4-antsupport/build.properties
@@ -0,0 +1,17 @@
#-------------------------------------------------------------------------------
# Copyright (c) 2010 Martin Schnabel <mb0@mb0.org>.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#-------------------------------------------------------------------------------
source.. = src/main/java
output.. = target/classes
bin.includes = META-INF/,\
.,\
plugin.xml,\
plugin.properties,\
license.txt,\
lib/,\
license-mpl.htm,\
icons/
Binary file added flex4-antsupport/icons/flexant_file.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added flex4-antsupport/lib/flexTasks.jar
Binary file not shown.
388 changes: 388 additions & 0 deletions flex4-antsupport/license-mpl.htm

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions flex4-antsupport/license.txt
@@ -0,0 +1,17 @@
Licensed under:

Eclipse Public License 1.0

---
You can find the license text in any Axdt feature
or at http://www.eclipse.org/legal/epl-v10.html

---------------------------------------------------------------------

The Adobe FlexSDK is licensed under:

Mozilla Public License 1.1

---
You can find the license text at lib/license-mpl.htm
or at http://www.mozilla.org/MPL/ or in the flex4 feature of Axdt
13 changes: 13 additions & 0 deletions flex4-antsupport/plugin.properties
@@ -0,0 +1,13 @@
#-------------------------------------------------------------------------------
# Copyright (c) 2010 Martin Schnabel <mb0@mb0.org>.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#-------------------------------------------------------------------------------
#Properties file for org.axdt.flex4.antsupport
providerName = axdt.org
pluginName = Flex 4 SDK Antsupport
flexHomeDescription = The absolute location of the Flex SDK, without trailing slash.
flexHomeFrameworks = The absolute location of the Flex SDK frameworks folder, without trailing slash.
antFile = Flex Ant File
99 changes: 99 additions & 0 deletions flex4-antsupport/plugin.xml
@@ -0,0 +1,99 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ant.core.antTasks">
<antTask
class="flex.ant.MxmlcTask"
eclipseRuntime="false"
library="lib/flexTasks.jar"
name="mxmlc">
</antTask>
<antTask
class="flex.ant.AsDocTask"
eclipseRuntime="false"
library="lib/flexTasks.jar"
name="asdoc">
</antTask>
<antTask
class="flex.ant.CompcTask"
eclipseRuntime="false"
library="lib/flexTasks.jar"
name="compc">
</antTask>
<antTask
class="flex.ant.HtmlWrapperTask"
eclipseRuntime="false"
library="lib/flexTasks.jar"
name="html-wrapper">
</antTask>
</extension>
<extension
point="org.eclipse.ant.core.extraClasspathEntries">
<extraClasspathEntry
eclipseRuntime="false"
library="lib/flexTasks.jar">
</extraClasspathEntry>
</extension>
<extension
point="org.eclipse.ant.core.antProperties">
<antProperty
class="org.axdt.flex4.antsupport.FlexResolver"
eclipseRuntime="false"
name="flex.home">
</antProperty>
<antProperty
class="org.axdt.flex4.antsupport.FlexResolver"
eclipseRuntime="false"
name="flex.frameworks">
</antProperty>
</extension>
<extension
point="org.eclipse.core.variables.valueVariables">
<variable
description="%flexHomeDescription"
initializerClass="org.axdt.flex4.antsupport.FlexResolver"
name="flex.home">
</variable>
<variable
description="%flexHomeFrameworks"
initializerClass="org.axdt.flex4.antsupport.FlexResolver"
name="flex.frameworks">
</variable>
</extension>
<extension
point="org.eclipse.ui.newWizards">
<category name="Axdt" id="org.axdt.category"></category>
<wizard name="%antFile"
category="org.axdt.category"
class="org.axdt.flex4.antsupport.NewFlexAntFileWizard"
id="org.axdt.flex4.antsupport.newFlexAntFileWizard"
icon="icons/flexant_file.gif">
</wizard>
</extension>
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.axdt.core.ui.perspective">
<newWizardShortcut id="org.axdt.flex4.antsupport.newFlexAntFileWizard"/>
</perspectiveExtension>
</extension>
<extension
point="org.eclipse.ui.navigator.navigatorContent">
<commonWizard
type="new"
menuGroupId="axdt.new"
wizardId="org.axdt.flex4.antsupport.newFlexAntFileWizard"
associatedExtensionId="org.axdt.core.ui.navigatorContent">
<enablement>
<or>
<adapt type="org.eclipse.core.resources.IProject" >
<test property="org.eclipse.core.resources.projectNature" value="org.axdt.as3.imp.nature"/>
</adapt>
<adapt type="org.eclipse.core.resources.IFile" />
<adapt type="org.eclipse.core.resources.IFolder" />
</or>
</enablement>
</commonWizard>
</extension>
</plugin>
13 changes: 13 additions & 0 deletions flex4-antsupport/pom.xml
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<artifactId>org.axdt.sdk.flex4.antsupport</artifactId>
<version>0.0.9-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
<parent>
<artifactId>org.axdt.sdk</artifactId>
<groupId>org.axdt</groupId>
<version>0.0.9-SNAPSHOT</version>
</parent>
</project>
@@ -0,0 +1,60 @@
/*******************************************************************************
* Copyright (c) 2010 Martin Schnabel <mb0@mb0.org>.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
******************************************************************************/
package org.axdt.flex4.antsupport;

import java.io.IOException;
import java.net.URL;

import org.eclipse.ant.core.IAntPropertyValueProvider;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.variables.IValueVariable;
import org.eclipse.core.variables.IValueVariableInitializer;
import org.osgi.framework.Bundle;

public class FlexResolver implements IAntPropertyValueProvider, IValueVariableInitializer {

/* (non-Javadoc)
* @see org.eclipse.ant.core.IAntPropertyValueProvider#getAntPropertyValue(java.lang.String)
*/
public String getAntPropertyValue(String name) {
if (name.equals("flex.frameworks")) {
return getValue(new Path("flexsdk/frameworks"));
}
return getValue(new Path("flexsdk/"));
}

/* (non-Javadoc)
* @see org.eclipse.core.variables.IValueVariableInitializer#initialize(org.eclipse.core.variables.IValueVariable)
*/
public void initialize(IValueVariable variable) {
String name = variable.getName();
if (name.equals("flex.frameworks")) {
variable.setValue(getValue(new Path("flexsdk/frameworks")));
}
variable.setValue(getValue(new Path("flexsdk/")));
}

public String getValue(Path path) {
return getBundleURL(path).getPath().replaceFirst("/$", "");
}
public URL getBundleURL(IPath path) {
Bundle bundle = Platform.getBundle("org.axdt.sdk.flex4");
URL[] urls = FileLocator.findEntries(bundle, path);
if (urls.length < 1)
return null;
try {
return FileLocator.resolve(urls[0]);
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
}

0 comments on commit ed22282

Please sign in to comment.