开发者

Instructions on compiling a java project from Google code

开发者 https://www.devze.com 2023-04-06 17:43 出处:网络
I use a tool called AntiSamy ( http://code.goo开发者_如何学Cgle.com/p/owaspantisamy/ ) to sanitize user input in a project. I don\'t know Java. I just create the object, call its method, and it works.

I use a tool called AntiSamy ( http://code.goo开发者_如何学Cgle.com/p/owaspantisamy/ ) to sanitize user input in a project. I don't know Java. I just create the object, call its method, and it works.

Recently the project was updated on Google code, but the download package itself was not. I'm looking for clear instructions on how I can download the updated code to create my own JAR file and replace the existing one in my project, thus make use of the update.

Looking at the code branch in Google code, there are many folders and other items, so I'm not sure which parts I need, and what type of directory structure I should have.

Any have any idea what should go in the JAR file/how to do this? I'm not an experienced coder, so nothing super technical please.


To build this project first checkout the sources:

svn checkout http://owaspantisamy.googlecode.com/svn/trunk/ owaspantisamy-read-only

Then change directory:

cd owaspantisamy-read-only/Java

Build the project by calling (I hope you already have maven, or get it from here):

mvn clean install

The jar you finally want is located at:

./antisamy/target/antisamy-1.4.5-SNAPSHOT.jar
0

精彩评论

暂无评论...
验证码 换一张
取 消