-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ported ProjectFacet APIs from Forge 1
- Loading branch information
1 parent
7429b5b
commit b059750
Showing
7 changed files
with
558 additions
and
0 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
40 changes: 40 additions & 0 deletions
40
projects/api/src/main/java/org/jboss/forge/projects/building/BuildException.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,40 @@ | ||
/* | ||
* Copyright 2012 Red Hat, Inc. and/or its affiliates. | ||
* | ||
* Licensed under the Eclipse Public License version 1.0, available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
|
||
package org.jboss.forge.projects.building; | ||
|
||
/** | ||
* Represents an exception during project building. | ||
* | ||
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a> | ||
* | ||
*/ | ||
public class BuildException extends RuntimeException | ||
{ | ||
private static final long serialVersionUID = 7523197340850216859L; | ||
|
||
public BuildException() | ||
{ | ||
super(); | ||
} | ||
|
||
public BuildException(final String message, final Throwable cause) | ||
{ | ||
super(message, cause); | ||
} | ||
|
||
public BuildException(final String message) | ||
{ | ||
super(message); | ||
} | ||
|
||
public BuildException(final Throwable cause) | ||
{ | ||
super(cause); | ||
} | ||
|
||
} |
34 changes: 34 additions & 0 deletions
34
projects/api/src/main/java/org/jboss/forge/projects/building/ProjectBuilder.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,34 @@ | ||
/* | ||
* Copyright 2012 Red Hat, Inc. and/or its affiliates. | ||
* | ||
* Licensed under the Eclipse Public License version 1.0, available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
|
||
package org.jboss.forge.projects.building; | ||
|
||
import org.jboss.forge.resource.Resource; | ||
|
||
/** | ||
* Used to configure and execute the project build system. | ||
* | ||
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a> | ||
*/ | ||
public interface ProjectBuilder | ||
{ | ||
/** | ||
* Manually add an argument to be passed to the underlying build system. | ||
*/ | ||
ProjectBuilder addArguments(String... args); | ||
|
||
/** | ||
* Enable or disable test execution during build. | ||
*/ | ||
ProjectBuilder runTests(boolean test); | ||
|
||
/** | ||
* Execute the build, returning the final product as a {@link Resource}. | ||
*/ | ||
Resource<?> build() throws BuildException; | ||
|
||
} |
Oops, something went wrong.