-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
6 changed files
with
60 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# `org.codeartisans.gradle.wsdl-tasks` plugin | ||
|
||
> Yet another Gradle plugin to work with WSDLs | ||
|
||
Only contains tasks for now, no source set magic or anything. | ||
You'll have to wire the tasks yourselves. | ||
Please have a look at the link:sample[sample project] for a sample build script. |
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
26 changes: 26 additions & 0 deletions
26
plugin/src/main/java/org/codeartisans/gradle/wsdl/WsImportRunnable.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,26 @@ | ||
package org.codeartisans.gradle.wsdl; | ||
|
||
import com.sun.tools.ws.wscompile.WsimportTool; | ||
import java.util.List; | ||
import javax.inject.Inject; | ||
|
||
public class WsImportRunnable implements Runnable { | ||
|
||
private final List<String> arguments; | ||
|
||
@Inject | ||
public WsImportRunnable( List<String> arguments ) { | ||
this.arguments = arguments; | ||
} | ||
|
||
@Override | ||
public void run() { | ||
try { | ||
if( !new WsimportTool( System.out ).run( arguments.toArray( new String[ arguments.size() ] ) ) ) { | ||
throw new RuntimeException( "Unable to import WSDL, see output for more details" ); | ||
} | ||
} catch( Throwable throwable ) { | ||
throw new RuntimeException( "Unable to import WSDL", throwable ); | ||
} | ||
} | ||
} |
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