--- /dev/null
+<?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.tizen.dynamicanalyzer</groupId>
+ <artifactId>org.tizen.dynamicanalyzer.p2-deps</artifactId>
+ <version>1.0.0</version>
+ <packaging>pom</packaging>
+
+ <pluginRepositories>
+ <pluginRepository>
+ <id>reficio</id>
+ <url>http://repo.reficio.org/maven/</url>
+ </pluginRepository>
+ </pluginRepositories>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.reficio</groupId>
+ <artifactId>p2-maven-plugin</artifactId>
+ <version>1.2.0-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <id>default-cli</id>
+ <configuration>
+ <p2>
+ </p2>
+ <artifacts>
+ </artifacts>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
build_path=${SRCDIR}/org.tizen.dynamicanalyzer.workbench.product/target/products/org.tizen.dynamicanalyzer.workbench.product
build_time=`date +%Y%m%d-%H%M`
-da_dep_repo=${SRCDIR}/package/da-repo
+repo_url="http://10.113.138.168/packages/advux_main/binary/"
__set_parameter()
{
product_version=${manifest_version}
branding_path="org.tizen.dynamicanalyzer.workbench.product"
branding_file="dynamicanalyzer.product"
-
- case ${platform} in
- ubuntu-32|ubuntu-64)
- reference_ide_path=${ROOTDIR}/indigo-pde/eclipse
- ;;
- windows-32|windows-64)
- reference_ide_path=${ROOTDIR}/indigo-winpde/eclipse
- ;;
- macos-64)
- reference_ide_path=${ROOTDIR}/indigo-macpde/eclipse
- ;;
- *)
- echo "${platform} is not support yet."
- ;;
- esac
}
__set_install_parameter()
mv ${about_mapping_path}.bkp ${about_mapping_path}
}
+__prepare_eclipse() {
+ case ${platform} in
+ ubuntu-32)
+ package_name="eclipse-pde_3.0.8_ubuntu-32"
+ ;;
+ windows-32)
+ package_name="eclipse-pde_3.0.8_windows-32"
+ ;;
+ ubuntu-64)
+ package_name="eclipse-pde_3.0.2_ubuntu-64"
+ ;;
+ windows-64)
+ package_name="eclipse-pde_3.0.8_windows-64"
+ ;;
+ macos-64)
+ package_name="eclipse-pde_3.0.8_macos-64"
+ ;;
+ *)
+ echo "${platform} is not support yet."
+ ;;
+ esac
+
+ if [ ! -d ${ROOTDIR}/${package_name} ]; then
+ echo "Downloading Eclipse Mars..."
+
+ cd /tmp
+ wget -nc -q "${repo_url}/${package_name}.zip"
+ unzip "${package_name}.zip" -d "${ROOTDIR}/${package_name}"
+ cd ${SRCDIR}
+ fi
+
+ reference_ide_path=${ROOTDIR}/${package_name}/data/eclipse-pde/eclipse
+
+ if [ "${package_name}" = "eclipse-pde_3.0.8_macos-64" ]; then
+ reference_ide_path=${ROOTDIR}/${package_name}/data/eclipse-pde/Eclipse.app/Contents/Eclipse
+ fi
+}
+
+__compose_da_dependencies() {
+ echo "Compose dependencies repository..."
+
+ da_dep_repo=${SRCDIR}/p2-deps
+ cd ${da_dep_repo}
+
+ # create p2 repository with dependencies plugins
+
+ # extra dependencies
+ mvn p2:site
+ built_repo=${da_dep_repo}/target/repository
+
+ # common-eplugin
+ __publishFeaturesAndBundles ${built_repo} ${ROOTDIR}/ide
+ # eclipse dependencies
+ __publishFeaturesAndBundles ${built_repo} ${reference_ide_path}
+ # some dependencies that cannot be downloaded
+ __publishFeaturesAndBundles ${built_repo} ${da_dep_repo}
+
+ cd ${SRCDIR}
+}
+
+__publishFeaturesAndBundles() {
+ java -jar ${reference_ide_path}/plugins/org.eclipse.equinox.launcher_*.jar \
+ -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher \
+ -metadataRepository file:$1 \
+ -artifactRepository file:$1 \
+ -source $2 \
+ -configs ${windowing}.${archive_platform_name}.${architecture} \
+ -publishArtifacts \
+ -append
+}
+
__execute_pde_build()
{
echo "Execute Product Ant Builder..."
cd ${SRCDIR}
- #DA_DEP_REPO=${da_dep_repo} mvn -V -DenvOs=${archive_platform_name} -DenvWs=${windowing} -DenvArch=${architecture} clean package
- DA_DEP_REPO=${da_dep_repo} mvn -V -DenvOs=${archive_platform_name} -DenvWs=${windowing} -DenvArch=${architecture} -DskipTests clean package
+ mvn -V -DenvOs=${archive_platform_name} -DenvWs=${windowing} -DenvArch=${architecture} -DskipTests clean package
if [ $? != 0 ];
then
__clean_build_environment
__set_product_version
__set_product_about_info
+ __prepare_eclipse
+ __compose_da_dependencies
__execute_pde_build
__execute_ant_build
__cleanup
Label:Dynamic Analyzer
OS:ubuntu-32
Build-host-os:ubuntu-32
-Build-dependency:
+Build-dependency: common-eplugin-rcp [ubuntu-32]
Description:The host of the Dynamic Analyzer
C-Prerequisites:rpm2cpio,cpio
Label:Dynamic Analyzer
OS:windows-32
Build-host-os:ubuntu-32
-Build-dependency:
+Build-dependency: common-eplugin-rcp [windows-32]
Description:The host of the Dynamic Analyzer
Package:dynamic-analyzer-product
Label:Dynamic Analyzer
OS:ubuntu-64
Build-host-os:ubuntu-64
-Build-dependency:
+Build-dependency: common-eplugin-rcp [ubuntu-64]
Description:The host of the Dynamic Analyzer
C-Prerequisites:rpm2cpio,cpio
Label:Dynamic Analyzer
OS:windows-64
Build-host-os:ubuntu-64
-Build-dependency:
+Build-dependency: common-eplugin-rcp [windows-64]
Description:The host of the Dynamic Analyzer
Package:dynamic-analyzer-product
Label:Dynamic Analyzer
OS:macos-64
Build-host-os:ubuntu-64
-Build-dependency:
+Build-dependency: common-eplugin-rcp [macos-64]
Description:The host of the Dynamic Analyzer