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 27732] New: - Duplicate usage of task "deploy" won't reported by ant V.1.6.x
Date Wed, 17 Mar 2004 10:20:17 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=27732>.
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=27732

Duplicate usage of task "deploy" won't reported by ant V.1.6.x

           Summary: Duplicate usage of task "deploy" won't reported by ant
                    V.1.6.x
           Product: Ant
           Version: 1.6.1
          Platform: Other
               URL: http://www.eurodata.de
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: T.Schuler@eurodata.de


On using the task "deploy" with Tomcat 4.x/5.x, ant V1.6x (including the beta1
and the final 1.6.1 won't report the duplicate usage of the same target. I had
the same target used twice, for explanation, here's a code snippet of my build.xml:
---snip---
	<!-- Deployment -->
	<target name="deploy" depends="deploy:foo,deploy:bar"/>
	<target name="deploy.do">
		<deploy url="${tomcat_url}"
        	        username="${tomcat_user}"
                        password="${tomcat_pass}" 
			path="${subproject.app_path}"                                                 
                      war="${deploy}/myproj_${subproject.name}_${version}.war"/>
	</target>
	<!--target name="deploy" depends="deploy:foo,deploy:bar"/-->
	<target name="deploy:foo" depends="war:foo">
		<antcall target="deploy.do">
			<param name="subproject.name" value="foo"/>
			<param name="subproject.app_path" value="/Foo"/>
		</antcall>
	</target>
	<target name="deploy:bar" depends="war:bar">
		<antcall target="deploy.do">
			<param name="subproject.name" value="bar"/>
			<param name="subproject.app_path" value="/Bar"/>
		</antcall>
	</target>
---snip---

As you cann see above, the line with the two depends terms is twice in the file.
The elder ant version 1.5.4 marked the build.xml as buggy and reported the
mistake of using the task twice...Shouldn't this be reported the new ant
versions too?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message