You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Aruna Venkataraman (JIRA)" <de...@velocity.apache.org> on 2009/06/03 12:28:07 UTC

[jira] Reopened: (VELOCITY-724) Is junit-3.8.1.jar optional for Velocity as specified in jar dependencies?

     [ https://issues.apache.org/jira/browse/VELOCITY-724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aruna Venkataraman reopened VELOCITY-724:
-----------------------------------------


This patch intimates the user that the build and compile was successful. The testing was halted since the user needs to upgrade to Apache Ant 1.7.x. Refer revised error message.PNG for the new error message output got.

The current error message contains a lengthy error message outlining 6 possible causes for error (Refer current error message.PNG). This error message will no longer be thrown to the end user.

The error message has been made more clear and short.

Implementation:

Need to apply this patch at line number 1182 in build.xml file. Refer svn diff.PNG for exact location for implementation and the single place of modification done.

SVN Repository Location: http://svn.apache.org/repos/asf/velocity/engine/trunk/build/

Code:
  <!-- =================================================================== -->
  <!-- Halts the testing process if Apache 1.7.x version is not used       -->
  <!-- =================================================================== -->
  <fail message="You are currently using ${ant.version}">
  	<condition>
  		<or>
			<contains string="${ant.version}" substring="1.2"/>
			<contains string="${ant.version}" substring="1.3"/>
			<contains string="${ant.version}" substring="1.4"/>
			<contains string="${ant.version}" substring="1.5"/>
			<contains string="${ant.version}" substring="1.6"/>
		</or>
	</condition>
	Error: Build and compilation was successful. 
	Testing failed. If you would like to test with junit, 
	please upgrade to Apache Ant 1.7.x version.
 </fail>

Please reply if you need anymore information/enhancement on this.

Thanks,
Aruna

> Is junit-3.8.1.jar optional for Velocity as specified in jar dependencies?
> --------------------------------------------------------------------------
>
>                 Key: VELOCITY-724
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-724
>             Project: Velocity
>          Issue Type: Bug
>          Components: Testing
>    Affects Versions: 1.6.2
>            Reporter: Aruna Venkataraman
>            Priority: Trivial
>         Attachments: Build succeeds with junit.jar.jpg, jnuit build failed.jpg
>
>
> When i navigate to the build directory in Velocity 1.6.2 and invoke "ant" then the below error is got:
> Could not create task or type of type: junit. lib\test. 
> Ant could not find the task or a class this task relies upon.
> Refer screenshot
> I deleted the junit-3.8.1.jar file from bin\test-lib as it was specified to be optional, but it gets created automatically. 
> Do we need to remove the dependency on this junit-3.8.1.jar manually? 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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