Permalink
Browse files

rename target platform to targetPlatform

  • Loading branch information...
1 parent 4ec5799 commit af3033e3b140d55049e99e0e770bcb08bdf123ee @jingweno committed Nov 7, 2010
Showing 595 changed files with 647 additions and 0 deletions.
@@ -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>
+ <parent>
+ <groupId>org.codefaces</groupId>
+ <artifactId>codefaces-parent</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.codefaces.core.github.tests</artifactId>
+ <packaging>eclipse-test-plugin</packaging>
+</project>
@@ -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>
+ <parent>
+ <groupId>org.codefaces</groupId>
+ <artifactId>codefaces-parent</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.codefaces.core.github</artifactId>
+ <packaging>eclipse-plugin</packaging>
+</project>
@@ -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>
+ <parent>
+ <groupId>org.codefaces</groupId>
+ <artifactId>codefaces-parent</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.codefaces.core.svn.tests</artifactId>
+ <packaging>eclipse-test-plugin</packaging>
+</project>
@@ -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>
+ <parent>
+ <groupId>org.codefaces</groupId>
+ <artifactId>codefaces-parent</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.codefaces.core.svn</artifactId>
+ <packaging>eclipse-plugin</packaging>
+</project>
@@ -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>
+ <parent>
+ <groupId>org.codefaces</groupId>
+ <artifactId>codefaces-parent</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.codefaces.core.tests</artifactId>
+ <packaging>eclipse-test-plugin</packaging>
+</project>
@@ -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>
+ <parent>
+ <groupId>org.codefaces</groupId>
+ <artifactId>codefaces-parent</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.codefaces.core</artifactId>
+ <packaging>eclipse-plugin</packaging>
+</project>
@@ -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>
+ <parent>
+ <groupId>org.codefaces</groupId>
+ <artifactId>codefaces-parent</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.codefaces.feature</artifactId>
+ <packaging>eclipse-feature</packaging>
+</project>
@@ -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>
+ <parent>
+ <groupId>org.codefaces</groupId>
+ <artifactId>codefaces-parent</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.codefaces.httpclient.tests</artifactId>
+ <packaging>eclipse-test-plugin</packaging>
+</project>
@@ -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>
+ <parent>
+ <groupId>org.codefaces</groupId>
+ <artifactId>codefaces-parent</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.codefaces.httpclient</artifactId>
+ <packaging>eclipse-plugin</packaging>
+</project>
@@ -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>
+ <parent>
+ <groupId>org.codefaces</groupId>
+ <artifactId>codefaces-parent</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.codefaces.lib</artifactId>
+ <packaging>eclipse-plugin</packaging>
+</project>
@@ -0,0 +1,41 @@
+# curl => unzip => assemble
+desc "Setup target platform"
+task :setup do
+ urls = ENV["urls"].split(",").map{ |t| t.strip }
+ dest = ENV["dest"]
+
+ dest_download_folder = File.join(dest, "downloads")
+ dest_work_folder = File.join(dest, "work")
+ dest_target_platform_folder = File.join(dest, "targetPlatform")
+
+ [dest_download_folder, dest_work_folder, dest_target_platform_folder].each {|d| mkdir_p d}
+
+ urls.each do |url|
+ dest_download_file = File.join(dest_download_folder, File.basename(url))
+ dest_work_folder = File.join(dest_download_folder, File.basename(url))
+ Rake::Task[:download].invoke(url, File.join(dest_download_folder, dest_download_file))
+ Rake::Task[:unzip].invoke(dest_download_file, File.join(dest_download_folder, file))
+
+
+ Rake::Task[:download].reenable
+ end
+end
+
+desc "Download artifact with specified url and destination."
+task :download, :url, :dest_file do |t, args|
+ url = args[:url]
+ dest_file = args[:dest_file]
+
+ puts "Downloading artifact #{url} to #{dest_file}"
+ sh "curl -L #{url} -o #{dest_file} -b cookies.txt -s"
+end
+
+desc "Unzip all downloaded files into a destination."
+task :unzip, :zip_file, :dest do |t, args|
+ sh "unzip #{args[:zip_file]} -d #{args[:dest]}"
+end
+
+desc "Assemble all plugins and features into a destination."
+task :assemble, :zip_file, :dest, :needs => :unzip do |t, args|
+end
+
@@ -0,0 +1,37 @@
+<?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>
+
+ <groupId>org.codefaces</groupId>
+ <artifactId>org.codefaces.target</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
+ <properties>
+ <eclipse-rap-runtime>http://mirror.csclub.uwaterloo.ca/eclipse/rt/rap/1.3/rap-runtime-1.3.1-R-20100915-2301.zip</eclipse-rap-runtime>
+ <subclipse-url>http://subclipse.tigris.org/files/documents/906/48441/site-1.6.15.zip</subclipse-url>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jruby.plugins</groupId>
+ <artifactId>jruby-rake-plugin</artifactId>
+ <version>1.5.3</version>
+ <executions>
+ <execution>
+ <id>setup-target-platform</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>rake</goal>
+ </goals>
+ <configuration>
+ <args>setup urls=${eclipse-rap-runtime},${subclipse-url} dest=${project.build.directory}</args>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
@@ -0,0 +1,60 @@
+<?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>
+
+ <groupId>org.codefaces</groupId>
+ <artifactId>org.codefaces.target</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
+ <properties>
+ <eclipse-rap-runtime>http://mirror.csclub.uwaterloo.ca/eclipse/rt/rap/1.3/rap-runtime-1.3.1-R-20100915-2301.zip</eclipse-rap-runtime>
+ <subclipse-url>http://subclipse.tigris.org/files/documents/906/48441/site-1.6.15.zip</subclipse-url>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.6</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <configuration>
+ <target name="Setting up target platform">
+ <macrodef name="curl-and-unzip">
+ <attribute name="url"/>
+ <attribute name="dest"/>
+ <sequential>
+ <local name="filename"/>
+ <local name="outputfile"/>
+ <basename property="filename" file="@{url}"/>
+ <property name="outputfile" value="@{dest}/${filename}"/>
+ <echo>Downloading @{url} to ${outputfile}</echo>
+ <exec executable="curl">
+ <arg value="-L"/>
+ <arg value="@{url}"/>
+ <arg value="-o"/>
+ <arg value="${outputfile}"/>
+ <arg value="-b"/>
+ <arg value="cookies.txt"/>
+ <arg value="-s"/>
+ </exec>
+ <unzip src="${outputfile}" dest="@{dest}/work"/>
+ </sequential>
+ </macrodef>
+ <curl-and-unzip url="${eclipse-rap-runtime}" dest="${project.build.directory}"/>
+ <curl-and-unzip url="${subclipse-url}" dest="${project.build.directory}"/>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
@@ -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>
+ <parent>
+ <groupId>org.codefaces</groupId>
+ <artifactId>codefaces-parent</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.codefaces.ui.github</artifactId>
+ <packaging>eclipse-plugin</packaging>
+</project>
@@ -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>
+ <parent>
+ <groupId>org.codefaces</groupId>
+ <artifactId>codefaces-parent</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.codefaces.ui.svn</artifactId>
+ <packaging>eclipse-plugin</packaging>
+</project>
@@ -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>
+ <parent>
+ <groupId>org.codefaces</groupId>
+ <artifactId>codefaces-parent</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.codefaces.ui.tests</artifactId>
+ <packaging>eclipse-test-plugin</packaging>
+</project>
@@ -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>
+ <parent>
+ <groupId>org.codefaces</groupId>
+ <artifactId>codefaces-parent</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.codefaces.ui.themes</artifactId>
+ <packaging>eclipse-plugin</packaging>
+</project>
@@ -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>
+ <parent>
+ <groupId>org.codefaces</groupId>
+ <artifactId>codefaces-parent</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.codefaces.ui</artifactId>
+ <packaging>eclipse-plugin</packaging>
+</project>
@@ -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>
+ <parent>
+ <groupId>org.codefaces</groupId>
+ <artifactId>codefaces-parent</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.codefaces.web.github.tests</artifactId>
+ <packaging>eclipse-test-plugin</packaging>
+</project>
@@ -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>
+ <parent>
+ <groupId>org.codefaces</groupId>
+ <artifactId>codefaces-parent</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.codefaces.web.github</artifactId>
+ <packaging>eclipse-plugin</packaging>
+</project>
@@ -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>
+ <parent>
+ <groupId>org.codefaces</groupId>
+ <artifactId>codefaces-parent</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>org.codefaces.web.googlecode.tests</artifactId>
+ <packaging>eclipse-test-plugin</packaging>
+</project>
Oops, something went wrong.

0 comments on commit af3033e

Please sign in to comment.