DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43315>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43315

           Summary: scriptdef should be able to load multiple script files
           Product: Ant
           Version: 1.7.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: [EMAIL PROTECTED]


After writing several tasks in javascript I've not found a way to reuse parts of
the code between scripts. As with the browser, the <scriptdef> task should allow
mutliple script files to be loaded into the context/scope to create the complete
script. For example:

  <scriptdef name="foo">
    <attribute name="bar"/>
    <script language="javascript" src="foobar.js"/>
    <script language="javascript" src="foobar2.js"/>
    <script language="ruby" src="foobar.ruby"/>
  </scriptdef>

Ideally. If problematic, the language could be part of the scriptdef, like so:

  <scriptdef language="javascript" name="foo">
    <attribute name="bar"/>
    <script src="foobar.js"/>
    <script src="foobar2.js"/>
  </scriptdef>

Then it would be little more than the concatenation of the set of <script> tag's
src values.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to