-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3289d10
commit a8a6844
Showing
7 changed files
with
99 additions
and
126 deletions.
There are no files selected for viewing
59 changes: 3 additions & 56 deletions
59
src/main/java/org/jenkinsci/plugins/fstrigger/core/FSTriggerAction.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 |
---|---|---|
@@ -1,64 +1,11 @@ | ||
package org.jenkinsci.plugins.fstrigger.core; | ||
|
||
import hudson.Util; | ||
import hudson.console.AnnotatedLargeText; | ||
import hudson.model.AbstractProject; | ||
import hudson.model.Action; | ||
import org.apache.commons.jelly.XMLOutput; | ||
|
||
import java.io.File; | ||
import java.io.IOException; | ||
import java.nio.charset.Charset; | ||
|
||
/** | ||
* Marked class for its matching jelly file | ||
* | ||
* @author Gregory Boissinot | ||
*/ | ||
public class FSTriggerAction implements Action { | ||
|
||
private transient AbstractProject<?, ?> job; | ||
|
||
private transient File logFile; | ||
|
||
private transient String actionTitle; | ||
|
||
public FSTriggerAction(AbstractProject<?, ?> job, File logFile, String actionTitle) { | ||
this.job = job; | ||
this.logFile = logFile; | ||
this.actionTitle = actionTitle; | ||
} | ||
|
||
public AbstractProject<?, ?> getOwner() { | ||
return job; | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public String getActionTitle() { | ||
return actionTitle; | ||
} | ||
|
||
public String getIconFileName() { | ||
return "clipboard.gif"; | ||
} | ||
|
||
public String getDisplayName() { | ||
return "FSTrigger Log"; | ||
} | ||
|
||
public String getUrlName() { | ||
return "triggerPollLog"; | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public String getLog() throws IOException { | ||
return Util.loadFile(getLogFile()); | ||
} | ||
|
||
public File getLogFile() { | ||
return logFile; | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public void writeLogTo(XMLOutput out) throws IOException { | ||
new AnnotatedLargeText<FSTriggerAction>(getLogFile(), Charset.defaultCharset(), true, this).writeHtmlTo(0, out.asWriter()); | ||
} | ||
public abstract class FSTriggerAction implements Action { | ||
} |
26 changes: 0 additions & 26 deletions
26
src/main/java/org/jenkinsci/plugins/fstrigger/core/FSTriggerFilesAction.java
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
src/main/java/org/jenkinsci/plugins/fstrigger/core/FSTriggerFolderAction.java
This file was deleted.
Oops, something went wrong.
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
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