Created
December 15, 2014 13:37
-
-
Save futur/1b70483da2d8c33f1262 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<!-- WARNING: Eclipse auto-generated file. Any modifications will be overwritten. | |
To include a user specific buildfile here, simply create one in the same | |
directory with the processing instruction <?eclipse.ant.import?> as the first | |
entry and export the buildfile again. --> | |
<project basedir="." default="deployadp" name="sample"> | |
<property environment="env" /> | |
<property name="ECLIPSE_HOME" value="../../Downloads/eclipse/" /> | |
<property name="debuglevel" value="source,lines,vars" /> | |
<property name="target" value="1.7" /> | |
<property name="source" value="1.7" /> | |
<path | |
id="WebSphere Application Server V8.5 Liberty Profile [MobileFirst Development Server].libraryclasspath"> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/liberty/wlp/dev/api/ibm/com.ibm.websphere.appserver.api.basics_1.0.5.jar" /> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/liberty/wlp/dev/api/ibm/com.ibm.websphere.appserver.api.endpoint_1.0.0.jar" /> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/liberty/wlp/dev/api/ibm/com.ibm.websphere.appserver.api.hpel_1.0.3.jar" /> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/liberty/wlp/dev/api/ibm/com.ibm.websphere.appserver.api.jaxrs_1.0.5.jar" /> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/liberty/wlp/dev/api/ibm/com.ibm.websphere.appserver.api.json_1.0.3.jar" /> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/liberty/wlp/dev/api/ibm/com.ibm.websphere.appserver.api.kernel.service_1.0.0.jar" /> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/liberty/wlp/dev/api/ibm/com.ibm.websphere.appserver.api.restConnector_1.0.3.jar" /> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/liberty/wlp/dev/api/ibm/com.ibm.websphere.appserver.api.security_1.0.4.jar" /> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/liberty/wlp/dev/api/ibm/com.ibm.websphere.appserver.api.servlet_1.0.4.jar" /> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/liberty/wlp/dev/api/ibm/com.ibm.websphere.appserver.api.transaction_1.0.4.jar" /> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/liberty/wlp/dev/api/ibm/com.ibm.websphere.appserver.api.webcontainer.security.app_1.0.0.jar" /> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/liberty/wlp/dev/api/third-party/com.ibm.websphere.appserver.thirdparty.jaxrs_1.0.5.jar" /> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/liberty/wlp/dev/api/spec/com.ibm.ws.javaee.annotation.1.1_1.0.1.jar" /> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/liberty/wlp/dev/api/spec/com.ibm.ws.javaee.el.2.2_1.0.5.jar" /> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/liberty/wlp/dev/api/spec/com.ibm.ws.javaee.jaxrs.1.1_1.0.1.jar" /> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/liberty/wlp/dev/api/spec/com.ibm.ws.javaee.jsp.2.2_1.0.2.jar" /> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/liberty/wlp/dev/api/spec/com.ibm.ws.javaee.jsp.tld.2.2_1.0.3.jar" /> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/liberty/wlp/dev/api/spec/com.ibm.ws.javaee.jstl.1.2_1.0.4.jar" /> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/liberty/wlp/dev/api/spec/com.ibm.ws.javaee.servlet.3.0_1.0.3.jar" /> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/liberty/wlp/dev/api/spec/com.ibm.ws.javaee.transaction.1.1_1.0.1.jar" /> | |
</path> | |
<path id="WL Server Library.libraryclasspath"> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/lib/worklight-extension-api.jar" /> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/lib/rhino.jar" /> | |
<pathelement | |
location="${ECLIPSE_HOME}plugins/com.worklight.worklight-artifacts_6.3.0.00-20141127-1357/worklight-jee-library.jar" /> | |
</path> | |
<path id="sample.classpath"> | |
<path | |
refid="WebSphere Application Server V8.5 Liberty Profile [MobileFirst Development Server].libraryclasspath" /> | |
<path refid="WL Server Library.libraryclasspath" /> | |
<pathelement location="bin/classes" /> | |
</path> | |
<target name="init"> | |
<mkdir dir="bin/classes" /> | |
<copy includeemptydirs="false" todir="bin/classes"> | |
<fileset dir="server/java"> | |
<exclude name="**/*.testsuite" /> | |
<exclude name="**/*.deploy" /> | |
<exclude name="**/*.location" /> | |
<exclude name="**/*.execution" /> | |
<exclude name="**/*.datapool" /> | |
<exclude name="**/*.artifact" /> | |
<exclude name="**/*.testlog" /> | |
<exclude name="**/*.java" /> | |
</fileset> | |
</copy> | |
</target> | |
<target name="clean"> | |
<delete dir="bin/classes" /> | |
</target> | |
<target depends="clean" name="cleanall" /> | |
<target depends="build-subprojects,build-project" name="build" /> | |
<target name="build-subprojects" /> | |
<target depends="init" name="build-project"> | |
<echo message="${ant.project.name}: ${ant.file}" /> | |
<javac debug="true" debuglevel="${debuglevel}" destdir="bin/classes" | |
includeantruntime="false" source="${source}" target="${target}"> | |
<src path="server/java" /> | |
<classpath refid="sample.classpath" /> | |
</javac> | |
</target> | |
<target | |
description="Build all projects which reference this project. Useful to propagate changes." | |
name="build-refprojects" /> | |
<target description="copy Eclipse compiler jars to ant lib directory" | |
name="init-eclipse-compiler"> | |
<copy todir="${ant.library.dir}"> | |
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar" /> | |
</copy> | |
<unzip dest="${ant.library.dir}"> | |
<patternset includes="jdtCompilerAdapter.jar" /> | |
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar" /> | |
</unzip> | |
</target> | |
<target description="compile project with Eclipse compiler" | |
name="build-eclipse-compiler"> | |
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter" /> | |
<antcall target="build" /> | |
</target> | |
<taskdef resource="com/worklight/ant/defaults.properties"> | |
<classpath> | |
<pathelement | |
location="/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/ant-tools/worklight-ant-builder.jar" /> | |
</classpath> | |
</taskdef> | |
<taskdef resource="com/worklight/ant/deployers/antlib.xml"> | |
<classpath> | |
<!-- Change this to the path of the worklight-ant-deployer.jar available in the | |
server installation folder --> | |
<pathelement location="/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib/worklight-ant-deployer.jar"/> | |
</classpath> | |
</taskdef> | |
<target name="buildadp" depends="build"> | |
<echo message="adapter build" /> | |
<adapter-builder folder="adapters\sample2" | |
destinationfolder="bin" /> | |
<echo message="adapter build end" /> | |
</target> | |
<target name="buildapp"> | |
<echo message="app build start" /> | |
<app-builder worklightserverhost="http://localhost:10080" | |
applicationFolder="/Users/rahulc/workspace2/sample/apps/sample" | |
environments="common,iphone,android" nativeProjectPrefix="sample" | |
outputFolder="bin" /> | |
<echo message="app build end" /> | |
</target> | |
<target name="deployadp" depends="buildadp,buildapp"> | |
<echo message=" deploy adapter start" /> | |
<wladm url="http://localhost:10080/sample" secure="false" user="admin" | |
password="admin"> | |
<deploy-adapter runtime="sample" | |
file="/Users/rahulc/workspace2/sample/bin/sample2.adapter" /> | |
</wladm> | |
<echo message="deploy adapter end" /> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment