This repository has been archived by the owner on Jul 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump to 0.1.0, fixed an NPE in validation, broke out the TaskView int…
…o separate class, added Batch mode.
- Loading branch information
Showing
6 changed files
with
59 additions
and
23 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
27 changes: 27 additions & 0 deletions
27
src/main/java/io/ruck/maven/gocd/plugin/MavenTaskView.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package io.ruck.maven.gocd.plugin; | ||
|
||
import com.thoughtworks.go.plugin.api.task.TaskView; | ||
import java.io.IOException; | ||
import org.apache.commons.io.IOUtils; | ||
|
||
/** | ||
* | ||
* @author ruckc | ||
*/ | ||
public class MavenTaskView implements TaskView { | ||
|
||
@Override | ||
public String displayValue() { | ||
return "Maven"; | ||
} | ||
|
||
@Override | ||
public String template() { | ||
try { | ||
return IOUtils.toString(getClass().getResourceAsStream("/views/maventask.template.html")); | ||
} catch (IOException ex) { | ||
return "Failed to find template: " + ex.getMessage(); | ||
} | ||
} | ||
|
||
} |
This file contains 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
This file contains 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