https://github.com/walkmod/walkmod-rawclasspath-plugin
Walkmod plugin to set the classpath for those projects that are not maven or gradle
https://github.com/walkmod/walkmod-rawclasspath-plugin
Last synced: 5 months ago
JSON representation
Walkmod plugin to set the classpath for those projects that are not maven or gradle
- Host: GitHub
- URL: https://github.com/walkmod/walkmod-rawclasspath-plugin
- Owner: walkmod
- Created: 2015-11-23T16:01:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-12T10:11:50.000Z (about 9 years ago)
- Last Synced: 2024-05-28T17:34:04.954Z (about 2 years ago)
- Language: Java
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
walkmod-rawclasspath-plugin
===========================
Walkmod plugin to resolve the classpath of a project that needs to be build manually or by script (without building tools such as maven or gradle).
== Usage
Specifically, this plugin makes available the classpath of maven project for the code transformations when you run walkmod. In order to access to the project classpath (the java.lang.ClassLoader element) from your code transformation, you just need to add
the setter operation for the class loader.
```java
public class MyVisitor extends VisitorSupport {
private ClassLoader classLoader;
public void setClassLoader(ClassLoader classLoader) {
this.classLoader = classLoader;
}
public void visit(MethodCallExpr md, VisitorContext vc){
...
}
```
In order to use this plugin (for walkmod >= 2.0), you just need to add the configuration provider specifying your classpath (the project .classes and the dependencies)
```XML
...
bin;lib/guava.jar;lib/log4j.jar
...
```
== Contributing
If you want to hack on this, fork it, improve it and send me a pull request.
To get started using it, just clone it and call `mvn install`.