nikgoodley-ibboost / jslint4java

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

sourceFolder won't accept String #73

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Include <sourceFolder>${basedir}/src/main/webapp/js</sourceFolder> in your 
plugin configuration.

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

[ERROR] Failed to execute goal 
com.googlecode.jslint4java:jslint4java-maven-plugin:2.0.1:lint (lint) on 
project mortar-webapp: Unable to parse configuration of mojo 
com.googlecode.jslint4java:jslint4java-maven-plugin:2.0.1:lint for parameter 
sourceFolders: Cannot assign configuration entry 'sourceFolders' with value 
'/home/pakman/mywebapp/src/main/webapp/js' of type java.lang.String to property 
of type java.io.File[] -> [Help 1]

What version of the product are you using? On what operating system?
V 2.0.1

Original issue reported on code.google.com by pablo.kr...@gmail.com on 5 Dec 2011 at 7:52

GoogleCodeExporter commented 9 years ago
I can't reproduce this. I have this in my test webapp:

% grep sourceFolder pom.xml
<sourceFolders>
<sourceFolder>${basedir}/src/main/webapp/assets/script</sourceFolder>
</sourceFolders>

What version of maven are you using?

Original comment by d...@happygiraffe.net on 6 Dec 2011 at 8:34

GoogleCodeExporter commented 9 years ago
I encountered this issue as well when configuring the maven plugin.
<sourceFolders>src/main/webapp/js/some/other/folder</sourceFolders>

Since the plugin expects a file array and not simply a file you need an extra 
nesting of tags (as shown above) or something like this:

<sourceFolders>
     <file>src/main/webapp/js/dojo-release/softrek</file>
</sourceFolders>

Maybe this is a documentation issue since the page 
http://docs.jslint4java.googlecode.com/git/2.0.1/maven.html doesn't clearly 
show that multiple items can go within <sourceFolders>

Original comment by jkel...@softrek.com on 23 Jan 2012 at 5:35

GoogleCodeExporter commented 9 years ago
The docs definitely need to show that.

Can I ask which version of maven you're using though?

Original comment by d...@happygiraffe.net on 23 Jan 2012 at 9:42

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I can reproduce as well, appears to be related to Maven version.  Default 
Ubuntu 12.04 maven version of 2.2.1 breaks, download of Maven 3.1.1 from 
apache's site works fine.

Original comment by gregoryd...@gmail.com on 19 Dec 2013 at 5:51

GoogleCodeExporter commented 9 years ago
You need to use maven 3.  It's not that new any more. :)

Original comment by d...@happygiraffe.net on 20 Dec 2013 at 9:59