activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r636752 - in /activemq/scripts: activemq-schema-copy.sh copy_camel_snapshot_xsd.py copy_snapshot_xsd.py
Date Thu, 13 Mar 2008 13:09:17 GMT
Author: ningjiang
Date: Thu Mar 13 06:09:12 2008
New Revision: 636752

URL: http://svn.apache.org/viewvc?rev=636752&view=rev
Log:
update the python scirpt that copys the snapshot schema

Added:
    activemq/scripts/copy_snapshot_xsd.py
      - copied, changed from r635449, activemq/scripts/copy_camel_snapshot_xsd.py
Removed:
    activemq/scripts/copy_camel_snapshot_xsd.py
Modified:
    activemq/scripts/activemq-schema-copy.sh

Modified: activemq/scripts/activemq-schema-copy.sh
URL: http://svn.apache.org/viewvc/activemq/scripts/activemq-schema-copy.sh?rev=636752&r1=636751&r2=636752&view=diff
==============================================================================
--- activemq/scripts/activemq-schema-copy.sh (original)
+++ activemq/scripts/activemq-schema-copy.sh Thu Mar 13 06:09:12 2008
@@ -29,14 +29,23 @@
 #          
 OUT_DIR=/www/activemq.apache.org/camel/schema
 
+# Copy the released schema
 cp /www/people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/camel/camel-spring/*/*.xsd
$OUT_DIR/spring/
 
 # TODO - uncomment when we have released 1.3.0
 #cp /www/people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/camel/camel-osgi/*/*.xsd
$OUT_DIR/osgi/
 
-SNAPSHOT_SCHEMA_DIR=/www/people.apache.org/repo/m1-snapshot-repository/org.apache.camel/xsds
+#cp /www/people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/camel/camel-cxf/*/*.xsd
$OUT_DIR/cxfEndpoint/
+
+
+# Copy the snapshot schema
+SNAPSHOT_SCHEMA_DIR=/www/people.apache.org/repo/m2-snapshot-repository/org/apache/camel
+
+python copy_snapshot_xsd.py $SNAPSHOT_SCHEMA_DIR/camel-spring $OUT_DIR/spring
+
+python copy_snapshot_xsd.py $SNAPSHOT_SCHEMA_DIR/camel-cxf $OUT_DIR/cxfEndpoint
+
+python copy_snapshot_xsd.py $SNAPSHOT_SCHEMA_DIR/camel-osgi $OUT_DIR/osgi
+
 
-cp $SNAPSHOT_SCHEMA_DIR/camel-spring*.xsd* $OUT_DIR/spring/
 
-# TODO we no longer use the m1 deployments?
-#cp $SNAPSHOT_SCHEMA_DIR/camel-osgi*.xsd* $OUT_DIR/osgi/

Copied: activemq/scripts/copy_snapshot_xsd.py (from r635449, activemq/scripts/copy_camel_snapshot_xsd.py)
URL: http://svn.apache.org/viewvc/activemq/scripts/copy_snapshot_xsd.py?p2=activemq/scripts/copy_snapshot_xsd.py&p1=activemq/scripts/copy_camel_snapshot_xsd.py&r1=635449&r2=636752&rev=636752&view=diff
==============================================================================
--- activemq/scripts/copy_camel_snapshot_xsd.py (original)
+++ activemq/scripts/copy_snapshot_xsd.py Thu Mar 13 06:09:12 2008
@@ -7,12 +7,6 @@
 import sys
 import shutil
 
-
-# The path that contain the svn command
-CAMEL_XSDS_SRC_ROOT = '/www/people.apache.org/repo/m2-snapshot-repository/org/apache/camel'
-CAMEL_XSDS_DES_ROOT = '/www/activemq.apache.org/camel/schema'
-
-
 def copy_snapshot_xsds(src, dest):
     for root, dirs, files in os.walk(src):
         files.sort();
@@ -35,20 +29,17 @@
         srcfile= os.path.join(root,filename)
         destfile = os.path.join(dest,'-'.join(list))
         shutil.copyfile(srcfile,destfile)
-        print 'copy the %s to %s' %(srcfile, destfile);
+        print 'copy %s to %s' %(srcfile, destfile);
 
 
 def main():
-    # copy the camel-spring xsd
-    copy_snapshot_xsds(os.path.join(CAMEL_XSDS_SRC_ROOT,'camel-spring'),
-                       os.path.join(CAMEL_XSDS_DES_ROOT,'spring'))
-    # copy the camel-cxf xsd
-    copy_snapshot_xsds(os.path.join(CAMEL_XSDS_SRC_ROOT,'camel-cxf'),
-                       os.path.join(CAMEL_XSDS_DES_ROOT,'cxfEndpoint'))
-    # copy the camel-osgi xsd
-    copy_snapshot_xsds(os.path.join(CAMEL_XSDS_SRC_ROOT,'camel-osgi'),
-                       os.path.join(CAMEL_XSDS_DES_ROOT,'osgi'))
-
+    if len(sys.argv) < 3:
+        print 'copy_snapshot_xsd.py SRC DES'\
+              'copy the last snaport xsd file from SRC directory to DES directory'\
+              'with the file name end with SNAPSHOT.xsd'
+        sys.exit();
+    copy_snapshot_xsds(sys.argv[1], sys.argv[2]);
+    
 
 if __name__ == '__main__':
   sys.exit(main())



Mime
View raw message