Opened 20 years ago

Last modified 8 years ago

#1878 closed enhancement

UPDATE:junit-3.8.1 — at Initial Version

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

Description

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 (0)

Note: See TracTickets for help on using tickets.