Xiaoying | d228ad7 | 2014-03-04 05:52:38 +0800 | [diff] [blame] | 1 | <!-- |
| 2 | ************************************************************************* |
| 3 | * Copyright (c) 2004, 2014 Actuate Corporation. |
| 4 | * All rights reserved. This program and the accompanying materials |
| 5 | * are made available under the terms of the Eclipse Public License v1.0 |
| 6 | * which accompanies this distribution, and is available at |
| 7 | * http://www.eclipse.org/legal/epl-v10.html |
| 8 | * |
| 9 | * Contributors: |
| 10 | * Actuate Corporation - initial implementation |
| 11 | * |
| 12 | ************************************************************************* |
| 13 | --> |
| 14 | |
| 15 | <project default="main"> |
| 16 | |
| 17 | <property name="username" value="xgu"/> |
| 18 | <property name="password" value="xx"/> |
| 19 | <property name="hostname" value="build.eclipse.org"/> |
| 20 | <property name="eclipse_dtp_path" value="~/downloads/datatools/downloads/drops/N_DTP_1.12.0"/> |
| 21 | <property name="buildDir" value="/home/adb/releng.dtp.1120/org.eclipse.datatools.releng.builder"/> |
| 22 | <property name="local_upload_path" value="${buildDir}/uploadScripts/workdir"/> |
| 23 | <property name="buildVersionLog" value="build.1.12.0.log"/> |
| 24 | <property name="up_status" value="start"/> |
| 25 | |
| 26 | <target name="main"> |
| 27 | |
| 28 | <antcall target="copytolocal"/> |
| 29 | <antcall target="copytoeclipse"/> |
| 30 | |
| 31 | </target> |
| 32 | |
| 33 | |
| 34 | <target name="copytolocal"> |
| 35 | <tstamp> |
| 36 | <format property="dtplog.upload.start" pattern="yyyy-MM-dd HH:mm:ss"/> |
| 37 | </tstamp> |
| 38 | <echo message="Start to dtp log upload at ${dtplog.upload.start}"/> |
| 39 | |
| 40 | <copy file="${buildDir}/adb.log" |
| 41 | tofile="${local_upload_path}/${buildVersionLog}" overwrite="true"/> |
| 42 | </target> |
| 43 | |
| 44 | <target name="copytoeclipse"> |
| 45 | <echo file="${local_upload_path}/${buildVersionLog}" append="true"> |
| 46 | ${up_status} DTP Upload... |
| 47 | </echo> |
| 48 | |
| 49 | <scp remoteTofile="${username}:${password}@${hostname}:${eclipse_dtp_path}/build.log" trust="true" |
| 50 | file="${local_upload_path}/${buildVersionLog}"/> |
| 51 | <sshexec host="${hostname}" username="${username}" password="${password}" trust="true" |
Linda Chan | 665ccf4 | 2014-06-02 12:53:15 -0700 | [diff] [blame] | 52 | failonerror="false" |
Xiaoying | d228ad7 | 2014-03-04 05:52:38 +0800 | [diff] [blame] | 53 | command="chmod g+w ${eclipse_dtp_path}/build.log" /> |
| 54 | </target> |
| 55 | |
| 56 | </project> |