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
| ext{ | |
| dbun = "SCOTT" | |
| dbpw = "oracle" | |
| dbinst = "orcl" | |
| } | |
| task deployUnitTests << { | |
| def sqlplusCmd = "sqlplus -s $dbun/$dbpw @../src/test/sql/run.sql".execute() | |
| sqlplusCmd.in.eachLine { line -> println line } | |
| } | |
| task runUnitTests << { |
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
| def tstamp = new Date().format('yyyy-MM-dd_HH-mm-ss') |
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
| task updateWar << { | |
| ant.zip(destfile: 'path/to/my.war', | |
| update: 'true') { | |
| mappedresources(){ | |
| fileset(dir: "path/to/config/$env/", | |
| includes: 'ws.properties') | |
| globmapper( from: 'ws.properties', | |
| to: 'WEB-INF/spring/appServlet/ws.properties') | |
| } | |
| } |
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
| def tstamp = new Date().format('yyyy-MM-dd_HH-mm-ss') | |
| def buildLogDir = "${rootDir}/build/logs" | |
| mkdir("${buildLogDir}") | |
| def buildLog = new File("${buildLogDir}/${tstamp}_buildLog.log") | |
| import org.gradle.logging.internal.* | |
| System.setProperty('org.gradle.color.error', 'RED') | |
| gradle.services.get(LoggingOutputInternal).addStandardOutputListener (new StandardOutputListener () { | |
| void onOutput(CharSequence output) { |
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
| tasks.addRule('Rule Usage: intTest<Browser>') { String taskName -> | |
| if(taskName.startsWith('intTest')) { | |
| task(taskName, type: Test) { | |
| ext.browser = taskName - 'intTest' | |
| systemProperties['LOCAL_DRIVER'] = false | |
| systemProperties['REMOTE_DRIVER'] = true | |
| systemProperties['SAUCE_DRIVER'] = false | |
| systemProperties['BROWSER'] = ext.browser | |
| systemProperties['GRID_HOST'] = 'localhost' |
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
| configurations { | |
| weblogic | |
| } | |
| dependencies { | |
| weblogic "com.oracle.weblogic:wlfullclient:10.3" | |
| } | |
| task runWLST << { |
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
| configurations { | |
| weblogic | |
| } | |
| dependencies { | |
| weblogic "com.oracle.weblogic:wlfullclient:10.3" | |
| } | |
| task runWLST << { |
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
| import org.apache.commons.httpclient.* | |
| import org.apache.commons.httpclient.auth.* | |
| import org.apache.commons.httpclient.methods.* | |
| import groovy.xml.MarkupBuilder | |
| def server = "localhost" | |
| def port = 8093 | |
| def jenkinsHost = "https://${server}:${port}" |
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
| import org.apache.commons.httpclient.* | |
| import org.apache.commons.httpclient.auth.* | |
| import org.apache.commons.httpclient.methods.* | |
| import groovy.xml.MarkupBuilder | |
| def server = "localhost" | |
| def port = 8093 | |
| def jenkinsHost = "https://${server}:${port}" |
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
| task distributionZip(type: Zip) { | |
| archiveName = "${project.name}.zip" | |
| subprojects.each { subproject -> | |
| inputs.dir subproject.buildDir | |
| into(subproject.name) { | |
| from subproject.buildDir | |
| include 'docs/**' | |
| include 'libs/**' | |
| include 'reports/**' |