Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(203)

Issue 273041: Simple maven plugin that applies the caja innocent code transformer.

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 1 month ago by chirag
Modified:
15 years, 10 months ago
Reviewers:
your-friendly-neighborhood-cajador, Jasvir
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

This maven plugin addresses the following issues in a apache shindig: https://issues.apache.org/jira/browse/SHINDIG-1293 https://issues.apache.org/jira/browse/SHINDIG-1294

Patch Set 1 #

Total comments: 11

Patch Set 2 : This introduces a simple maven plugin that applies the caja innocent code transformer. #

Patch Set 3 : This introduces a simple maven plugin that applies the caja innocent code transformer. #

Total comments: 7

Patch Set 4 : This introduces a simple maven plugin that applies the caja innocent code transformer. #

Total comments: 7

Patch Set 5 : This introduces a simple maven plugin that applies the caja innocent code transformer. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -0 lines) Patch
A plugins/caja-plugin/README View 1 chunk +27 lines, -0 lines 0 comments Download
A plugins/caja-plugin/pom.xml View 1 chunk +74 lines, -0 lines 0 comments Download
A plugins/caja-plugin/src/main/java/com/google/caja/tools/CajaMojo.java View 1 chunk +179 lines, -0 lines 0 comments Download

Messages

Total messages: 10
chirag
16 years, 1 month ago (2010-03-07 18:24:45 UTC) #1
Jasvir
http://codereview.appspot.com/273041/diff/1/2 File plugins/caja-ict-plugin/src/main/java/caja/maven/plugin/CajaIctMojo.java (right): http://codereview.appspot.com/273041/diff/1/2#newcode19 plugins/caja-ict-plugin/src/main/java/caja/maven/plugin/CajaIctMojo.java:19: package caja.maven.plugin; What project is this a patch against? ...
16 years, 1 month ago (2010-03-07 18:59:26 UTC) #2
chirag
http://codereview.appspot.com/273041/diff/1/2 File plugins/caja-ict-plugin/src/main/java/caja/maven/plugin/CajaIctMojo.java (right): http://codereview.appspot.com/273041/diff/1/2#newcode19 plugins/caja-ict-plugin/src/main/java/caja/maven/plugin/CajaIctMojo.java:19: package caja.maven.plugin; The patch is against Caja. SVN Base: ...
16 years, 1 month ago (2010-03-07 21:42:38 UTC) #3
Jasvir
http://codereview.appspot.com/273041/diff/1/2 File plugins/caja-ict-plugin/src/main/java/caja/maven/plugin/CajaIctMojo.java (right): http://codereview.appspot.com/273041/diff/1/2#newcode19 plugins/caja-ict-plugin/src/main/java/caja/maven/plugin/CajaIctMojo.java:19: package caja.maven.plugin; Ok this is against Caja. Please use ...
16 years, 1 month ago (2010-03-08 00:24:36 UTC) #4
chirag
http://codereview.appspot.com/273041/diff/1/2 File plugins/caja-ict-plugin/src/main/java/caja/maven/plugin/CajaIctMojo.java (right): http://codereview.appspot.com/273041/diff/1/2#newcode19 plugins/caja-ict-plugin/src/main/java/caja/maven/plugin/CajaIctMojo.java:19: package caja.maven.plugin; On 2010/03/08 00:24:36, jasvir wrote: > Ok ...
16 years, 1 month ago (2010-03-08 08:26:10 UTC) #5
Jasvir
http://codereview.appspot.com/273041/diff/1/2 File plugins/caja-ict-plugin/src/main/java/caja/maven/plugin/CajaIctMojo.java (right): http://codereview.appspot.com/273041/diff/1/2#newcode19 plugins/caja-ict-plugin/src/main/java/caja/maven/plugin/CajaIctMojo.java:19: package caja.maven.plugin; Please include Maven jars in third party ...
16 years, 1 month ago (2010-03-08 16:51:20 UTC) #6
Jasvir
ping!
15 years, 10 months ago (2010-05-18 17:55:30 UTC) #7
chirag
http://codereview.appspot.com/273041/diff/9001/3002 File plugins/caja-ict-plugin/src/main/java/com/google/caja/tools/CajaIctMojo.java (right): http://codereview.appspot.com/273041/diff/9001/3002#newcode58 plugins/caja-ict-plugin/src/main/java/com/google/caja/tools/CajaIctMojo.java:58: File srcFile = new File(sourceDirectory + "/" + fileName); ...
15 years, 10 months ago (2010-05-18 17:58:33 UTC) #8
Jasvir
http://codereview.appspot.com/273041/diff/14001/15002 File pom.xml (right): http://codereview.appspot.com/273041/diff/14001/15002#newcode1 pom.xml:1: <?xml version="1.0" encoding="UTF-8"?> Should this file should be in ...
15 years, 10 months ago (2010-05-27 18:12:07 UTC) #9
chirag
15 years, 10 months ago (2010-06-03 04:55:06 UTC) #10
http://codereview.appspot.com/273041/diff/14001/15002
File pom.xml (right):

http://codereview.appspot.com/273041/diff/14001/15002#newcode41
pom.xml:41: <version>r3950</version>
I've designed the plugin to be standalone, and decoupled from other top-level
maven artifacts.

 
On 2010/05/27 18:12:08, jasvir wrote:
> I am not too familiar with maven.  Is it possible to not have to specify a
> particular version of Caja here but to use the same one as specified by the
caja
> pom.xml?

http://codereview.appspot.com/273041/diff/14001/15001
File src/main/java/com/google/caja/tools/CajaIctMojo.java (right):

http://codereview.appspot.com/273041/diff/14001/15001#newcode41
src/main/java/com/google/caja/tools/CajaIctMojo.java:41: public class
CajaIctMojo extends AbstractMojo {
On 2010/05/27 18:12:08, jasvir wrote:
> Since this is the general maven plugin point for Caja, I suggest calling it
> CajaMojo or something else not ICT specific.

Done.

http://codereview.appspot.com/273041/diff/14001/15001#newcode105
src/main/java/com/google/caja/tools/CajaIctMojo.java:105:
scanner.setIncludes(new String[]{"**/*.js"});
On 2010/05/27 18:12:08, jasvir wrote:
> Can the includes and excludes also be configurable in the pom as the source
> directory is - perhaps with some defaults.

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b