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
| #!/bin/bash | |
| tsts="$TM_SELECTED_TEXT" | |
| if [ -z "$TM_SELECTED_TEXT" ] | |
| then | |
| #echo `cat $TM_FILEPATH | grep -Po "(?<=defaultTasks\s\")(.*)(?=\")"` | |
| deftasks=`cat $TM_FILEPATH | grep -Po "(?<=defaultTasks\s\")(.*)(?=\")"` | |
| # if deftask is null open dialog to ask for tasks to execute | |
| if [ -z "$deftasks" ] | |
| then | |
| res=$("$TM_SUPPORT_PATH/bin/CocoaDialog.app/Contents/MacOS/CocoaDialog" inputbox --title "I Need Input" \ |
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
| class LoadTest extends Test{ | |
| private numberOfClients = 2 | |
| public LoadTest(){ | |
| super() | |
| } | |
| public FileTree getCandidateClassFiles() { | |
| FileTree candidateTimes = super.getCandidateClassFiles() | |
| for(int client = 1; client<numberOfClients;client++){ | |
| candidateTimes = candidateTimes + super.getCandidateClassFiles() |
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
| private final String attrName = "name" | |
| private String name; | |
| ... | |
| ... | |
| logger.debug(attrName + " is " + name); |
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
| apply plugin:'groovy' | |
| repositories{ | |
| mavenCentral() | |
| } | |
| dependencies{ | |
| groovy "org.codehaus.groovy:groovy-all:1.7.10" | |
| testCompile "junit:junit:4.8.2" | |
| } |
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
| apply plugin:'java' | |
| repositories{ | |
| maven { | |
| url = "https://oss.sonatype.org/content/repositories/snapshots/" | |
| } | |
| } | |
| dependencies{ | |
| compile "org.ajoberstar:gradle-git:0.1.1-SNAPSHOT" |
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
| [alias] | |
| test = !gradle test |
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 printJSFiles << { | |
| def jsFiles = fileTree(dir:"dir1", include:'*.js') | |
| println jsFiles.files | |
| } |
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
| #!/bin/bash | |
| FOUND=0 | |
| CURR_PATH="$PWD" | |
| REAL_GRADLEW="$CURR_PATH/gradlew" | |
| REAL_MASTER_GRADLEW="$CURR_PATH/master/gradlew" | |
| # Check current directory, which might be root directory for gradlew | |
| if [ -x "$REAL_GRADLEW" ]; then | |
| FOUND=1 |
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 convertFiles <<{ | |
| fileTree("someFolder").matching{ include "**/*.txt"}.each{ aFile -> | |
| exec{ | |
| commandLine 'dos2unix' | |
| args aFile.absolutePath | |
| } | |
| } | |
| } |
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.withType(JavaCompile){ | |
| def warnLogFile = file("$buildDir/${name}Warnings.log") | |
| logging.addStandardErrorListener(new StandardOutputListener(){ | |
| void onOutput(CharSequence output){ | |
| warnLogFile << output | |
| } | |
| }) | |
| } |
OlderNewer