Repository: flex-examples Updated Branches: refs/heads/develop 7537f95dd -> 0a74d15aa
prep for builds Project: http://git-wip-us.apache.org/repos/asf/flex-examples/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-examples/commit/0a74d15a Tree: http://git-wip-us.apache.org/repos/asf/flex-examples/tree/0a74d15a Diff: http://git-wip-us.apache.org/repos/asf/flex-examples/diff/0a74d15a Branch: refs/heads/develop Commit: 0a74d15aae9bd34c07dc91b2a20a7536b9d93892 Parents: 7537f95 Author: Alex Harui <[email protected]> Authored: Fri Sep 11 17:09:23 2015 -0700 Committer: Alex Harui <[email protected]> Committed: Fri Sep 11 17:09:23 2015 -0700 ---------------------------------------------------------------------- ProductDashboard/.gitignore | 1 + ProductDashboard/build.xml | 15 +++++++++++---- ProductDashboard/jenkins.xml | 40 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-examples/blob/0a74d15a/ProductDashboard/.gitignore ---------------------------------------------------------------------- diff --git a/ProductDashboard/.gitignore b/ProductDashboard/.gitignore new file mode 100644 index 0000000..90a7a3f --- /dev/null +++ b/ProductDashboard/.gitignore @@ -0,0 +1 @@ +ApacheFlexJSSDK/ \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-examples/blob/0a74d15a/ProductDashboard/build.xml ---------------------------------------------------------------------- diff --git a/ProductDashboard/build.xml b/ProductDashboard/build.xml index 3fce12c..9f31a7b 100644 --- a/ProductDashboard/build.xml +++ b/ProductDashboard/build.xml @@ -20,10 +20,17 @@ <project name="ProjectDashboard" basedir="." default="main"> <property environment="env"/> - <property name="FLEX_HOME" value="${env.FLEX_HOME}" /> - <property name="FLEXJS_HOME" value="${env.FLEX_HOME}" /> - <property name="FALCON_HOME" value="${env.FLEX_HOME}" /> - <property name="FALCONJX_HOME" value="${env.FLEX_HOME}/js" /> + <available file="${env.FLEX_HOME}/js/bin/mxmlc" + type="file" + property="FLEX_HOME" + value="${env.FLEX_HOME}" /> + + <fail message="The environment variable FLEX_HOME is not set to a FlexJS SDK" + unless="FLEX_HOME"/> + + <property name="FLEXJS_HOME" value="${FLEX_HOME}" /> + <property name="FALCON_HOME" value="${FLEX_HOME}" /> + <property name="FALCONJX_HOME" value="${FLEX_HOME}/js" /> <property name="theme_arg" value="-theme=${FLEX_HOME}/frameworks/libs/flat.swc" /> <property name="example" value="ProjectDashboard" /> http://git-wip-us.apache.org/repos/asf/flex-examples/blob/0a74d15a/ProductDashboard/jenkins.xml ---------------------------------------------------------------------- diff --git a/ProductDashboard/jenkins.xml b/ProductDashboard/jenkins.xml new file mode 100644 index 0000000..e30c5c4 --- /dev/null +++ b/ProductDashboard/jenkins.xml @@ -0,0 +1,40 @@ +<?xml version="1.0"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> + +<project name="ProjectDashboard_Jenkins" basedir="." default="main"> + <property environment="env"/> + <available file="${env.FLEX_HOME}/js/bin/mxmlc" + type="file" + property="FLEX_HOME" + value="${env.FLEX_HOME}" /> + + <target name="main" unless="FLEX_HOME"> + <mkdir dir="${basedir}/ApacheFlexJSSDK" /> + <mkdir dir="${basedir}/temp" /> + <get src="${APACHE_FLEXJS_BINARY_PACKAGE}" + dest="${basedir}/temp/ApacheFlexJSSDK.zip" /> + <unzip src="${basedir}/temp/ApacheFlexJSSDK.zip" dest="${basedir}/ApacheFlexJSSDK" /> + <ant dir="${basedir}/ApacheFlexJSSDK" antfile="installer.xml" > + <property name="installer" value="true" /> + </ant> + <delete dir="${basedir}/temp" failonerror="false" /> + </target> + +</project>
