add mirrorsURL app
diff --git a/plugins/org.eclipse.wtp.releng.tools/src/org/eclipse/wtp/releng/tools/AddMirrorURL.java b/plugins/org.eclipse.wtp.releng.tools/src/org/eclipse/wtp/releng/tools/AddMirrorURL.java
index 247d616..acfa724 100644
--- a/plugins/org.eclipse.wtp.releng.tools/src/org/eclipse/wtp/releng/tools/AddMirrorURL.java
+++ b/plugins/org.eclipse.wtp.releng.tools/src/org/eclipse/wtp/releng/tools/AddMirrorURL.java
@@ -10,18 +10,20 @@
 import org.eclipse.equinox.p2.publisher.IPublisherInfo;
 import org.eclipse.equinox.p2.publisher.Publisher;
 import org.eclipse.equinox.p2.publisher.PublisherInfo;
+import org.eclipse.equinox.p2.repository.IRepository;
 import org.eclipse.equinox.p2.repository.IRepositoryManager;
 import org.eclipse.equinox.p2.repository.artifact.IArtifactRepository;
 
 public class AddMirrorURL {
 
     private static final String ARTIFACT_REPO_DIRECTORY = "artifact.repo.directory";
-    // currently, the system property to set is the same as the P2
-    // repository property, but may not always be the case.
-    private static final String MIRROR_URL2_PROPERTY    = "p2.mirrorURL";
-    private static final String P2_MIRROR_URL           = "p2.mirrorURL";
+    // currently, the system property to set is the same value as the P2
+    // repository property, IRepository.PROP_MIRRORS_URL, but may not always
+    // be
+    // the case.
+    private static final String MIRRORS_URL_PROPERTY    = "p2.mirrorsURL";
     private String              repositoryDirectory;
-    private String              mirrorURLString;
+    private String              mirrorsURLString;
 
     public void rewriteMirrorURL() throws ProvisionException, URISyntaxException {
         try {
@@ -64,7 +66,7 @@
             simpleArtifactRepositoryFactory.setAgent(Activator.getProvisioningAgent());
             IArtifactRepository artifactRepository = simpleArtifactRepositoryFactory.load(new URI(repoURI), IRepositoryManager.REPOSITORY_HINT_MODIFIABLE, new NullProgressMonitor());
             if (artifactRepository != null) {
-                String existingMirrorURL = artifactRepository.getProperty(P2_MIRROR_URL);
+                String existingMirrorURL = artifactRepository.getProperty(IRepository.PROP_MIRRORS_URL);
                 if (existingMirrorURL != null) {
                     infoOutput("the repository had existing mirrorURL: " + existingMirrorURL);
                 }
@@ -100,7 +102,7 @@
                 }
                 if (needrewrite) {
                     result = new PublisherInfo();
-                    artifactRepository.setProperty(P2_MIRROR_URL, newMirrorURL);
+                    artifactRepository.setProperty(IRepository.PROP_MIRRORS_URL, newMirrorURL);
                     result.setArtifactRepository(artifactRepository);
                     result.setArtifactOptions(IPublisherInfo.A_OVERWRITE);
                 }
@@ -143,16 +145,16 @@
     }
 
     public String getMirrorURLString() {
-        if (mirrorURLString == null) {
-            mirrorURLString = System.getProperty(MIRROR_URL2_PROPERTY);
-            infoOutput("mirror URL value set from '" + MIRROR_URL2_PROPERTY + "': " + mirrorURLString);
+        if (mirrorsURLString == null) {
+            mirrorsURLString = System.getProperty(MIRRORS_URL_PROPERTY);
+            infoOutput("mirror URL value set from '" + MIRRORS_URL_PROPERTY + "': " + mirrorsURLString);
 
         }
-        return mirrorURLString;
+        return mirrorsURLString;
     }
 
     public void setMirrorURLString(String mirrorURLString) {
-        this.mirrorURLString = mirrorURLString;
+        this.mirrorsURLString = mirrorURLString;
     }
 
 }
diff --git a/plugins/org.eclipse.wtp.releng.tools/webtools-apps-getAndInstallApp.sh b/plugins/org.eclipse.wtp.releng.tools/webtools-apps-getAndInstallApp.sh
new file mode 100644
index 0000000..e7c29e6
--- /dev/null
+++ b/plugins/org.eclipse.wtp.releng.tools/webtools-apps-getAndInstallApp.sh
@@ -0,0 +1,26 @@
+#!/usr/bin/env bash
+
+# finds file on users path, before current directory
+# hence, non-production users can set their own values for test machines
+source webtools.apps.shsource
+
+
+echo JAVA_EXEC_DIR: $JAVA_EXEC_DIR;
+echo ECLIPSE_HOME_36: $ECLIPSE_HOME_36; 
+
+APP_NAME=org.eclipse.equinox.p2.director
+REPO_LOCATION="file:/${HOME}/download/webtools/releng/"
+REPO_ARGS="-metadataRepository ${REPO_LOCATION} -artifactRepository ${REPO_LOCATION}"
+IU_ARGS="-installIU org.eclipse.wt.releng.feature.feature.group"
+
+echo APP_NAME: ${APP_NAME}
+echo REPO_LOCATION: ${REPO_LOCATION}
+echo REPO_ARGS: ${REPO_ARGS}
+echo IU_ARGS: ${IU_ARGS}
+
+VM_ARGS="-vmargs -Xmx512m -Declipse.p2.mirrors=false"
+echo VMARGS: ${VM_ARGS}
+
+"${ECLIPSE_HOME_36}"/eclipse -consolelog -data ./workspace-getapp -debug -nosplash -vm "${JAVA_EXEC_DIR}" -application ${APP_NAME} ${REPO_ARGS} ${IU_ARGS} ${VM_ARGS}
+
+
diff --git a/plugins/org.eclipse.wtp.releng.tools/webtools-apps-runApp.sh b/plugins/org.eclipse.wtp.releng.tools/webtools-apps-runApp.sh
new file mode 100644
index 0000000..0cee8bd
--- /dev/null
+++ b/plugins/org.eclipse.wtp.releng.tools/webtools-apps-runApp.sh
@@ -0,0 +1,28 @@
+#!/usr/bin/env bash
+
+# finds file on users path, before current directory
+# hence, non-production users can set their own values for test machines
+source webtools.apps.shsource
+
+
+echo JAVA_EXEC_DIR: $JAVA_EXEC_DIR;
+echo ECLIPSE_HOME_36: $ECLIPSE_HOME_36; 
+
+MIRRORS_URL_KEY_SEGMENT=releases/helios/201005070900/aggregate/
+
+OTHER_ARGS="-Dartifact.repo.directory=${HOME}/downloads/releases/helios/201005070900/aggregate/   -Dp2.mirrorsURL=http://www.eclipse.org/downloads/download.php?format=xml&file=${MIRRORS_URL_KEY_SEGMENT}&protocol=http"
+
+VM_ARGS="-vmargs -Declipse.p2.mirrors=false -Xmx256m"
+
+APP_NAME=org.eclipse.wtp.releng.addmirrorurl
+
+echo "ECLIPSE_HOME_36: " ${ECLIPSE_HOME_36}
+EQLAUNCHER=`find ${ECLIPSE_HOME_36}/plugins -name org.eclipse.equinox.launcher_*.jar`
+echo "EQLAUNCHER: " $EQLAUNCHER
+
+# -noexit
+
+"${JAVA_CMD}" -jar ${EQLAUNCHER} -vm "${JAVA_CMD}" -console  -data ./workspace-runapp -debug -nosplash -application ${APP_NAME} ${OTHER_ARGS} ${VM_ARGS}
+
+
+