Skip to Content.
Sympa Menu

idok-commit - [idok-commit] idok commit r352 - trunk/sites/psi/scripts/admin/dmsd

idok-commit AT lists.psi.ch

Subject: Commit emails of the iDok project

List archive

[idok-commit] idok commit r352 - trunk/sites/psi/scripts/admin/dmsd


Chronological Thread 
  • From: "AFS account Stadler Hans Christian" <stadler_h AT savannah.psi.ch>
  • To: idok-commit AT lists.psi.ch
  • Subject: [idok-commit] idok commit r352 - trunk/sites/psi/scripts/admin/dmsd
  • Date: Tue, 31 Mar 2009 11:27:50 +0200
  • List-archive: <https://lists.web.psi.ch/pipermail/idok-commit/>
  • List-id: Commit emails of the iDok project <idok-commit.lists.psi.ch>

Author: stadler_h
Date: Tue Mar 31 11:27:49 2009
New Revision: 352

Log:
speedup library copying using rsync

Modified:
trunk/sites/psi/scripts/admin/dmsd/build.xml

Modified: trunk/sites/psi/scripts/admin/dmsd/build.xml
==============================================================================
--- trunk/sites/psi/scripts/admin/dmsd/build.xml (original)
+++ trunk/sites/psi/scripts/admin/dmsd/build.xml Tue Mar 31 11:27:49
2009
@@ -85,17 +85,17 @@
</target>

<target name="copy-lib" depends="init" description="Copy the jar
files in lib from existing working copy">
- <echo message="rsync -av --exclude .svn --delete
${svnrelroot}/${svnlib} ${src}"/>
+ <echo message="rsync -av --include='${svnlib}'
--include='*.jar' --exclude='**' --delete ${svnrelroot}/${svnlib} ${src}"/>
<exec executable="rsync" logError="true" failonerror="true">
- <arg line="-av --exclude .svn --delete
${svnrelroot}/${svnlib} ${src}"/>
+ <arg line="-av --include='${svnlib}'
--include='*.jar' --exclude='**' --delete ${svnrelroot}/${svnlib} ${src}"/>
</exec>
</target>

<target name="build-lib" depends="init" description="Copy libraries
to build dir">
- <echo message="Copying libraries to build dir"/>
- <copy todir="${distlib}" overwrite="true">
- <fileset dir="${srclib}" casesensitive="yes"
includes="*.jar"/>
- </copy>
+ <echo message="rsync -av --include='*.jar' --exclude='**'
--delete ${srclib}/ ${distlib}"/>
+ <exec executable="rsync" logError="true" failonerror="true">
+ <arg line="-av --include='*.jar' --exclude='**'
--delete ${srclib}/ ${distlib}"/>
+ </exec>
</target>

<!-- Get common and dmsd java source -->
@@ -108,12 +108,13 @@
</target>

<target name="copy-source" depends="init" description="Copy the java
sources in common and dmsd from existing working copy">
- <echo message="rsync -av --exclude .svn --delete
${svnrelroot}/${svnjava} ${src}"/>
+ <echo message="rsync -av --exclude='.svn' --exclude='*~'
--delete ${svnrelroot}/${svnjava} ${src}"/>
<exec executable="rsync" logError="true" failonerror="true">
- <arg line="-av --exclude .svn --delete
${svnrelroot}/${svnjava} ${src}"/>
+ <arg line="-av --exclude='.svn' --exclude='*~'
--delete ${svnrelroot}/${svnjava} ${src}"/>
</exec>
+ <echo message="rsync -av --exclude='.svn' --exclude='*~'
--delete ${svnrelroot}/${svnextra} ${src}"/>
<exec executable="rsync" logError="true" failonerror="true">
- <arg line="-av --exclude .svn --delete
${svnrelroot}/${svnextra} ${src}"/>
+ <arg line="-av --exclude='.svn' --exclude='*~'
--delete ${svnrelroot}/${svnextra} ${src}"/>
</exec>
</target>

@@ -160,9 +161,10 @@
<target name="install-lib" depends="build-lib" description="Install
libraries except common">
<echo message="installing lib"/>
<mkdir dir="${destlib}"/>
- <copy todir="${destlib}" overwrite="true">
- <fileset dir="${distlib}" casesensitive="yes"
includes="*.jar"/>
- </copy>
+ <echo message="rsync -av --include='*.jar' --exclude='**'
--delete ${distlib}/ ${destlib}"/>
+ <exec executable="rsync" logError="true" failonerror="true">
+ <arg line="-av --include='*.jar' --exclude='**'
--delete ${distlib}/ ${destlib}"/>
+ </exec>
</target>

<target name="install-dmsd" depends="install-lib,build-dmsd"
description="Install dmsd">



  • [idok-commit] idok commit r352 - trunk/sites/psi/scripts/admin/dmsd, AFS account Stadler Hans Christian, 03/31/2009

Archive powered by MHonArc 2.6.19.

Top of Page