Opened 20 years ago

Closed 20 years ago

Last modified 8 years ago

#1878 closed enhancement (fixed)

UPDATE:junit-3.8.1

Reported by: sean@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port: junit

Description (last modified by ryandesign (Ryan Carsten Schmidt))

This patch to junit creates a symlink to junit.jar in java/apache-ant/lib This allows ant builds that use the JUnit task (for unit testing) to run properly. (e.g. Maven) Here's the diff:

Index: Portfile
===================================================================
RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/java/junit/Portfile,v
retrieving revision 1.1
diff -u -u -r1.1 Portfile
--- Portfile	18 Apr 2004 15:08:34 -0000	1.1
+++ Portfile	27 May 2004 04:34:57 -0000
@@ -32,8 +32,10 @@
 
 destroot	{
 	xinstall -d -m 755 ${destroot}${prefix}/share/java \
-		${destroot}${prefix}/share/doc
+                ${destroot}${prefix}/share/doc \
+                ${destroot}${prefix}/java/apache-ant/lib/
 	xinstall -m 644 ${worksrcpath}/${name}${version}/junit.jar \
 		${destroot}${prefix}/share/java/
 	file copy ${worksrcpath}/javadoc ${destroot}${prefix}/share/doc/${name}
+	system "ln -fs ${prefix}/share/java/junit.jar ${destroot}${prefix}/java/apache-ant/lib/"
 }

Change History (2)

comment:1 Changed 20 years ago by mww@…

Resolution: fixed
Status: newclosed

thanks, commited! (beware: apache-ant has moved to ${prefix}/share/java/apache-ant)

comment:2 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: junit added
Note: See TracTickets for help on using tickets.