Author: yradtsevich
Date: 2012-08-10 15:04:17 -0400 (Fri, 10 Aug 2012)
New Revision: 42979
Added:
workspace/yradtsevich/browsersim/org.jboss.tools.browsersim.app-maven-standalone/ant/
workspace/yradtsevich/browsersim/org.jboss.tools.browsersim.app-maven-standalone/ant/ant-contrib-1.0b3.jar
workspace/yradtsevich/browsersim/org.jboss.tools.browsersim.app-maven-standalone/ant/swtjar.jar
workspace/yradtsevich/browsersim/org.jboss.tools.browsersim.app-maven-standalone/org.jboss.browsersim.product
workspace/yradtsevich/browsersim/org.jboss.tools.browsersim.app-maven-standalone/pom.xml
Log:
https://issues.jboss.org/browse/JBIDE-11493 : Create standalone BrowserSim application
- maven script creating standalone browserSim
Added:
workspace/yradtsevich/browsersim/org.jboss.tools.browsersim.app-maven-standalone/ant/ant-contrib-1.0b3.jar
===================================================================
(Binary files differ)
Property changes on:
workspace/yradtsevich/browsersim/org.jboss.tools.browsersim.app-maven-standalone/ant/ant-contrib-1.0b3.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
workspace/yradtsevich/browsersim/org.jboss.tools.browsersim.app-maven-standalone/ant/swtjar.jar
===================================================================
(Binary files differ)
Property changes on:
workspace/yradtsevich/browsersim/org.jboss.tools.browsersim.app-maven-standalone/ant/swtjar.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
workspace/yradtsevich/browsersim/org.jboss.tools.browsersim.app-maven-standalone/org.jboss.browsersim.product
===================================================================
---
workspace/yradtsevich/browsersim/org.jboss.tools.browsersim.app-maven-standalone/org.jboss.browsersim.product
(rev 0)
+++
workspace/yradtsevich/browsersim/org.jboss.tools.browsersim.app-maven-standalone/org.jboss.browsersim.product 2012-08-10
19:04:17 UTC (rev 42979)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?pde version="3.5"?>
+
+<product name="JBoss Tools Mobile Browser Simulator"
uid="org.jboss.tools.browsersim"
application="org.jboss.tools.vpe.browsersim.eclipse.application"
version="1.0.0.qualifier" useFeatures="false"
includeLaunchers="false">
+ <plugins>
+ <plugin id="org.eclipse.swt"/>
+ <plugin id="org.jboss.tools.vpe.browsersim"/>
+ <plugin id="org.jboss.tools.vpe.browsersim.browser"/>
+ </plugins>
+</product>
Added:
workspace/yradtsevich/browsersim/org.jboss.tools.browsersim.app-maven-standalone/pom.xml
===================================================================
---
workspace/yradtsevich/browsersim/org.jboss.tools.browsersim.app-maven-standalone/pom.xml
(rev 0)
+++
workspace/yradtsevich/browsersim/org.jboss.tools.browsersim.app-maven-standalone/pom.xml 2012-08-10
19:04:17 UTC (rev 42979)
@@ -0,0 +1,152 @@
+<?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">
+ <properties>
+ <tycho-version>0.15.0</tycho-version>
+ </properties>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.tools.browsersim</groupId>
+ <artifactId>org.jboss.tools.browsersim.app.feature</artifactId>
+ <version>3.4.0-SNAPSHOT</version>
+ <packaging>eclipse-repository</packaging>
+ <name>org.jboss.tools.browsersim.app</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-maven-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <extensions>true</extensions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>target-platform-configuration</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <environments>
+ <environment>
+ <os>linux</os>
+ <ws>gtk</ws>
+ <arch>x86</arch>
+ </environment>
+ <environment>
+ <os>linux</os>
+ <ws>gtk</ws>
+ <arch>x86_64</arch>
+ </environment>
+ <environment>
+ <os>win32</os>
+ <ws>win32</ws>
+ <arch>x86</arch>
+ </environment>
+ <environment>
+ <os>macosx</os>
+ <ws>cocoa</ws>
+ <arch>x86</arch>
+ </environment>
+ <environment>
+ <os>macosx</os>
+ <ws>cocoa</ws>
+ <arch>x86_64</arch>
+ </environment>
+ </environments>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-p2-repository-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <includeAllDependencies>true</includeAllDependencies>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.1</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <configuration>
+ <tasks>
+ <mkdir dir="target/application"/>
+ <mkdir dir="target/application/temp/swt"/>
+ <!--TODO: get SWT version automatically-->
+ <!--taskdef resource="net/sf/antcontrib/antcontrib.properties">
+ <classpath>
+ <pathelement location="ant/ant-contrib-1.0b3.jar"/>
+ </classpath>
+ </taskdef>
+ <path id="org.eclipse.swt.file.id">
+ <fileset dir="target/repository/plugins">
+ <include name="org.eclipse.swt_*.jar"/>
+ </fileset>
+ </path>
+ <property name="org.eclipse.swt.file"
refid="org.eclipse.swt.file.id"/>
+ <propertyregex property="org.eclipse.swt.version"
input="org.eclipse.swt.file" regexp=".*org\.eclipse\.swt_(.*)\.jar"
select="\1" casesensitive="true" /-->
+ <property name="org.eclipse.swt.version"
value="3.7.2.v3740f"/>
+
+ <copy
file="target/repository/plugins/org.eclipse.swt.win32.win32.x86_${org.eclipse.swt.version}.jar"
tofile="target/application/temp/swt/swt-win32-${org.eclipse.swt.version}.jar"/>
+ <copy
file="target/repository/plugins/org.eclipse.swt.cocoa.macosx_${org.eclipse.swt.version}.jar"
tofile="target/application/temp/swt/swt-osx32-${org.eclipse.swt.version}.jar"/>
+ <copy
file="target/repository/plugins/org.eclipse.swt.cocoa.macosx.x86_64_${org.eclipse.swt.version}.jar"
tofile="target/application/temp/swt/swt-osx64-${org.eclipse.swt.version}.jar"/>
+ <copy
file="target/repository/plugins/org.eclipse.swt.gtk.linux.x86_${org.eclipse.swt.version}.jar"
tofile="target/application/temp/swt/swt-linux32-${org.eclipse.swt.version}.jar"/>
+ <copy
file="target/repository/plugins/org.eclipse.swt.gtk.linux.x86_64_${org.eclipse.swt.version}.jar"
tofile="target/application/temp/swt/swt-linux64-${org.eclipse.swt.version}.jar"/>
+
+ <path id="org.jboss.tools.vpe.browsersim.browser.file.id">
+ <fileset dir="target/repository/plugins">
+ <include name="org.jboss.tools.vpe.browsersim.browser_*.jar"/>
+ </fileset>
+ </path>
+ <property name="org.jboss.tools.vpe.browsersim.browser.file"
refid="org.jboss.tools.vpe.browsersim.browser.file.id"/>
+ <path id="org.jboss.tools.vpe.browsersim.file.id">
+ <fileset dir="target/repository/plugins">
+ <include name="org.jboss.tools.vpe.browsersim_*.jar"/>
+ </fileset>
+ </path>
+ <property name="org.jboss.tools.vpe.browsersim.file"
refid="org.jboss.tools.vpe.browsersim.file.id"/>
+
+ <!-- Package cross platform SWT Jar -->
+ <taskdef name="swtjar"
classname="org.swtjar.ant.SWTJarTask" classpath="ant/swtjar.jar"/>
+ <swtjar jarfile="target/application/browsersim.jar"
targetmainclass="org.jboss.tools.vpe.browsersim.ui.BrowserSim"
swtversion="${org.eclipse.swt.version}">
+ <!--fileset dir="build/classes" includes="**/*" /-->
+ <fileset dir="target/application/temp/swt"
includes="*.jar" />
+ <zipfileset excludes="META-INF/*.MF"
src="${org.jboss.tools.vpe.browsersim.browser.file}"/>
+ <zipfileset excludes="META-INF/*.MF"
src="${org.jboss.tools.vpe.browsersim.file}"/>
+ </swtjar>
+ <delete dir="target/application/temp"/>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <repositories>
+ <repository>
+ <id>eclipse-indigo-sr2</id>
+ <
url>http://mirrors.med.harvard.edu/eclipse//eclipse/updates/3.7/R-3.7....
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>jbosstools-nightly</id>
+ <
url>http://download.jboss.org/jbosstools/updates/nightly/trunk/</ur...
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ </repositories>
+</project>