Permalink
Browse files

Change-Id: I8efc9fb732024a597bab8095f94a97d87f43ac3a

Signed-off-by: royganor <roy@zend.com>
  • Loading branch information...
royatzend committed Mar 1, 2012
1 parent a619f52 commit 45257a24174144642e6093591683636f1713187c
Showing 315 changed files with 57,288 additions and 0 deletions.
View
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>phing-eclipse</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.dltk.core.scriptbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.php.core.PHPNature</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1,7 @@
+<?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" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.ganoro.phing.core</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>
@@ -0,0 +1,8 @@
+#Sun Feb 26 13:16:16 IST 2012
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
@@ -0,0 +1,13 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Phing Core
+Bundle-SymbolicName: org.ganoro.phing.core;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.ganoro.phing.core.PhingCore
+Bundle-Vendor: Roy Ganor
+Bundle-Localization: plugin
+Require-Bundle: org.eclipse.core.runtime,
+ org.eclipse.core.variables
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-ActivationPolicy: lazy
+Export-Package: org.ganoro.phing.core
@@ -0,0 +1,6 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ plugin.properties
@@ -0,0 +1,19 @@
+###############################################################################
+# Copyright (c) 2000, 2005 IBM Corporation and others.
+# 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
+#
+# Contributors:
+# IBM Corporation - initial API and implementation
+###############################################################################
+
+pluginName = Phing Build Tool Core
+providerName = Eclipse.org
+classpathName = Extra Phing Classpath Entry Definitions
+tasksName = Phing Task Definitions
+typesName = Phing Type Definitions
+propertiesName = Phing Properties Definitions
+
+antBuildFileContentType.name= Phing Buildfile
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.eclipse.core.contenttype.contentTypes">
+ <content-type
+ id="antBuildFile"
+ name="%antBuildFileContentType.name"
+ base-type="org.eclipse.core.runtime.xml"
+ file-names="build.xml"
+ file-extensions="macrodef,ent,xml,ant"
+ priority="normal">
+ <describer
+ class="AntBuildfileContentDescriber">
+ </describer>
+ </content-type>
+ </extension>
+
+
+</plugin>
@@ -0,0 +1,102 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * 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
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+
+package org.ganoro.phing.core;
+
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.variables.VariablesPlugin;
+
+public class AntClasspathEntry implements IAntClasspathEntry {
+
+ private String entryString;
+ private boolean eclipseRequired= false;
+ private URL url= null;
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ant.core.IAntClasspathEntry#getLabel()
+ */
+ public String getLabel() {
+
+ return entryString;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ant.core.IAntClasspathEntry#getEntryURL()
+ */
+ public URL getEntryURL() {
+ if (url != null) {
+ return url;
+ }
+ try {
+ String expanded = VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution(entryString);
+ return new URL(IPhingCoreConstants.FILE_PROTOCOL + expanded);
+ } catch (CoreException e) {
+ try {
+ return new URL(IPhingCoreConstants.FILE_PROTOCOL + entryString);
+ } catch (MalformedURLException e1) {
+ return null;
+ }
+ } catch (MalformedURLException e) {
+ PhingCore.log(e);
+ }
+ return null;
+ }
+
+ public AntClasspathEntry(String entryString) {
+ this.entryString= entryString;
+ }
+
+ public AntClasspathEntry(URL url) {
+ this.url= url;
+ this.entryString= new File(url.getPath()).getAbsolutePath();
+ }
+
+ /* (non-Javadoc)
+ * @see java.lang.Object#equals(java.lang.Object)
+ */
+ public boolean equals(Object obj) {
+ if (obj instanceof IAntClasspathEntry) {
+ IAntClasspathEntry other= (IAntClasspathEntry)obj;
+ return entryString.equals(other.getLabel());
+ }
+ return false;
+
+ }
+
+ /* (non-Javadoc)
+ * @see java.lang.Object#hashCode()
+ */
+ public int hashCode() {
+ return entryString.hashCode();
+ }
+
+ /* (non-Javadoc)
+ * @see java.lang.Object#toString()
+ */
+ public String toString() {
+ return getLabel();
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ant.core.IAntClasspathEntry#isEclipseRuntimeRequired()
+ */
+ public boolean isEclipseRuntimeRequired() {
+ return eclipseRequired;
+ }
+
+ public void setEclipseRuntimeRequired(boolean eclipseRequired) {
+ this.eclipseRequired = eclipseRequired;
+ }
+}
Oops, something went wrong.

0 comments on commit 45257a2

Please sign in to comment.