add: parameter for running commandline task
This commit is contained in:
		
							parent
							
								
									c673e8e3f2
								
							
						
					
					
						commit
						88b48b46ce
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		|  | @ -193,8 +193,10 @@ task rhinoShell(type: JavaExec) { | |||
|   standardInput = System.in | ||||
| } | ||||
| 
 | ||||
| // Call this task with a function definition using the `-P` parameter, e.g. | ||||
| // `./gradlew commandLine -Pfunction=manage.getAllApplications` | ||||
| task commandLine(type: JavaExec) { | ||||
|   classpath = files('launcher.jar') | ||||
|   main = 'helma.main.launcher.Commandline' | ||||
|   args '-h', projectDir, 'manage.getAllApplications' | ||||
|   args '-h', projectDir, function | ||||
| } | ||||
|  |  | |||
|  | @ -1 +1,3 @@ | |||
| org.gradle.console = plain | ||||
| 
 | ||||
| function = | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue