Specify a JsUnit test URL different from output directory
---------------------------------------------------------

                 Key: MOJO-1429
                 URL: http://jira.codehaus.org/browse/MOJO-1429
             Project: Mojo
          Issue Type: Improvement
          Components: javascript-tools
         Environment: Windows Server 2003 SP2, Sharepoint 2007
            Reporter: Andrew Hushbeck
            Priority: Minor
         Attachments: JsUnitMojo.java

When using a system like Sharepoint 2007 and uploading javascript to a template 
folder, where relative URLs are going to change depending on site, it would be 
nice to be able to specify a test location that is different from the upload 
location. Also, in many of these cases, a URL would be nicer then a file:\\

I've coded out this change and attached the file. The major changes are adding 
property values for testFinalLocation and protocol and creating the path either 
with these set files.

Note that mine, on line 233, uses "path = testFinalLocation;" without adding 
the protocol on the front. This is more convenient for me, however, would 
probably need to be added for consistency in the final coded version.

This code could very well have some redundancy and clean up issues as I coded 
it fairly quickly, but it solves the issue for me (at least for now).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to