nikgoodley-ibboost / jslint4java

Automatically exported from code.google.com/p/jslint4java
Other
0 stars 0 forks source link

Unable to use excludes element in maven configuration #91

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. I am using jslint4java-maven-plugin and want to exclude a directory 
containing external libraries from jslint. I have attached my pom.  I have 
added a <excludes> element: <excludes>**/external/*.js</excludes>

2. run mvn install

What is the expected output? What do you see instead?

I expect the js files in the external folder to be excluded from jslint.  
Instead I get the error:
"[ERROR] Failed to execute goal 
com.googlecode.jslint4java:jslint4java-maven-plugin:2.0.0:lint (lint) on 
project ase-js: Unable to parse configuration of mojo 
com.googlecode.jslint4java:jslint4java-maven-plugin:2.0.0:lint for parameter 
excludes: Cannot assign configuration entry 'excludes' with value 
'**/external/*.js' of type java.lang.String to property of type java.util.List 
-> [Help 1]"

What version of the product are you using? On what operating system?
I am using jslint4java-maven-plugin version 2.0.0 running on cygwin on windows 
vista.

Please provide any additional information below.

I feel like I am probably doing something stupid here and not using the 
configuration correctly but I have been butting my head against this trying 
different things and cannot get it to work.   

Original issue reported on code.google.com by davidlun...@gmail.com on 6 Dec 2012 at 10:24

Attachments:

GoogleCodeExporter commented 9 years ago
I have realised that the format for the excludes element is not as documented.  
I have changed:

<excludes>**/external/*.js</excludes>

to

<excludes><exclude>**/external/*.js</exclude></excludes> 

and it seems to work.

Regards,

David

Original comment by davidlun...@gmail.com on 6 Dec 2012 at 10:41