/ Published in: Groovy
// file: install_camel-jgroups_2.11-SNAPSHOT.groovy
// url: http://faroe228.googlecode.com/svn/trunk/SvnAndMvnInstallFor_camel-jgroups_2.11-SNAPSHOT/InstallScript/install_camel-jgroups_2.11-SNAPSHOT.groovy
// url: http://faroe228.googlecode.com/svn/trunk/SvnAndMvnInstallFor_camel-jgroups_2.11-SNAPSHOT/InstallScript/install_camel-jgroups_2.11-SNAPSHOT.groovy
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/usr/bin/env groovy // file: install_camel-jgroups_2.11-SNAPSHOT.groovy // url: http://faroe228.googlecode.com/svn/trunk/SvnAndMvnInstallFor_camel-jgroups_2.11-SNAPSHOT/InstallScript/install_camel-jgroups_2.11-SNAPSHOT.groovy /* // Sample gradle snippet for using installed camel-jgroups:2.11-SNAPSHOT repositories { maven { url 'http://repo.grails.org/grails/repo' } // I have found this to be more reliable for spring/hibernate jars than maven central maven { url 'http://repository.jboss.org/nexus/content/groups/public-jboss' } // good to have maven { url 'http://repo.fusesource.com/nexus/content/groups/public' } // for activemq-all:5.8.0' mavenCentral() mavenLocal() // !!! because we installed camel-jgroups:2.11-SNAPSHOT to m2local } dependencies { compile 'org.apache-extras.camel-extra:camel-jgroups:2.11-SNAPSHOT' // !!! } */ String theSrc = "http://faroe228.googlecode.com/svn/trunk/SvnAndMvnInstallFor_camel-jgroups_2.11-SNAPSHOT.zip" String theDest = theSrc.split('/').last() // e.g. SvnAndMvnInstallFor_camel-jgroups_2.11-SNAPSHOT.zip ant.delete( dir: explodedZipFolderName ) ant.unzip( src: theDest, dest: '.' ) ant.exec( executable: osShell, dir: explodedZipFolderName ) { arg( line: osShellLinePrefix + "gradlew" ) }