TheProjecter / phantomjs-qunit-runner

Automatically exported from code.google.com/p/phantomjs-qunit-runner
0 stars 0 forks source link

Don't lose subdirectories when copying user defined libraries #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a library include in a subdirectory:

<includeLibsInDir>
    <directory>src/main/webapp/scripts</directory>
    <includes>
        <include>_jQuery/jquery-1.8.1.min.js</include>
    </includes>
</includeLibsInDir>

2. The file is copied to the qunit dir without the subdirectory
   (target/qunit/jquery-1.8.1.min.js not target/qunit/_jQuery/jquery-1.8.1.min.js)

3. Phantomjs is passed the path including the subdirectory, which means the 
file cannot be found.

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

1. We should preserve the directory structure when the files are copied, so 
that the phantomjs call works

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

1.0.16-SNAPSHOT on Ubuntu 12.04, phantomjs v1.4

Please provide any additional information below.

Patch attached retains directory structure when copying lib files.

Original issue reported on code.google.com by one...@energyhub.net on 4 Jan 2013 at 7:45

Attachments:

GoogleCodeExporter commented 8 years ago
Oops, sorry about that. The attached patch needs an extra closing parenthesis 
on line 11.

Original comment by one...@energyhub.net on 4 Jan 2013 at 8:23