ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43315] New: - scriptdef should be able to load multiple script files
Date Thu, 06 Sep 2007 01:10:21 GMT
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: dgriffin@motorola.com


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message