https://bz.apache.org/bugzilla/show_bug.cgi?id=64603
Bug ID: 64603 Summary: ScriptFilter has no way to reuse it Product: Ant Version: 1.10.8 Hardware: PC Status: NEW Severity: enhancement Priority: P2 Component: Optional Tasks Assignee: notifications@ant.apache.org Reporter: robert.flahe...@oracle.com Target Milestone: --- I see no way to reuse a ScriptFilter in various tasks. - I thought a FilterSet might work, but it doesn't support nesting standard filters. - Possibly a new ScriptFilterDef would be needed, and maybe provide an "id", then use a ScriptFilter with "refid" in say a copy task. - Currently I'm trying to hack this by creating a ScriptDef with an attribute, and do: var sText = String(attributes.get("input")); sText = "ScriptDef(" + sText + ")"; project.setProperty("output", sText); and in a ScriptFilter do: var sText = self.getToken(); sText = "ScriptFilter(" + sText + ")"; var oMinifyTask = project.createTask("minify"); oMinifyTask.setDynamicAttribute("input", sText); oMinifyTask.perform(); sText = project.getProperty("output"); self.setToken(sText); I saw no other way to pass back a value. I'll try to use a Local to minimize the scope. -- You are receiving this mail because: You are the assignee for the bug.