Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm using sibling folder for source and destination and still error out #19

Closed
SebTardif opened this issue Nov 13, 2012 · 2 comments
Closed
Assignees
Labels

Comments

@SebTardif
Copy link

In the example below it's expected that "webapp-instrumented" folder will be created on the fly in the current folder, which is a sibling of "webapp"

c:\JSCover-0.0.12>dir /w
Volume in drive C is Windows7_OS
Volume Serial Number is B84D-1359

Directory of c:\JSCover-0.0.12

[.] [..] bookmarks.html build.properties build.xml
cobertura.ser [doc] example-filesystem.bat example-filesystem.sh example-server.bat
example-server.sh History.md JSCover.iml JSCover.ipr JSCover.iws
[lib] README.md [src] [target] Todo.md
[webapp]
14 File(s) 185,643 bytes
7 Dir(s) 55,451,303,936 bytes free

c:\JSCover-0.0.12>java -jar C:\JSCover-0.0.12\target\dist\JSCover-all.jar -fs webapp webapp-instrumented
Destination directory 'webapp-instrumented' must not be in the source directory
Usage: java -jar jscover.jar -fs [OPTION]... SOURCE-DIRECTORY DESTINATION-DIRECTORY
Instrument JavaScript with code coverage information.

Options:
--js-version=VERSION use the specified JavaScript version
--no-instrument=PATH copy but do not instrument PATH
--exclude=PATH don't copy from source/PATH
-h, --help display this help and exit

@tntim96
Copy link
Owner

tntim96 commented Nov 13, 2012

It's because "webapp-instrumented" starts with ""webapp", it thinks its a sub-folder. I'll fix that logic.

@tntim96
Copy link
Owner

tntim96 commented Nov 13, 2012

Try v0.0.13

@tntim96 tntim96 closed this as completed Nov 13, 2012
@ghost ghost assigned tntim96 Nov 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants