New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #22399 (closed defect: duplicate)

Opened 4 years ago

Last modified 4 years ago

java/pmd 3.9 fails to build

Reported by: champlin@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: pmd

Description

Mac OS X 10.5.8 / Xcode 3.1.3

I apologize because this is really a followup to ticket #16649 but I don't know how to resurrect it. It was closed 6 months ago with no obvious resolution but the problem persists. Basically, PMD requires jUnit to run some test cases during its build. It fails because junit.jar isn't on its classpath, though you may have the junit port installed. A similar problem was solved in the java/commons-logging port (r33902) and I've attached a diff reflecting their solution for pmd. Here is an abbreviated sample of my original installation attempt illustrating the problem:

boris[1004] sudo port install pmd
--->  Computing dependencies for pmd
--->  Fetching pmd
--->  Attempting to fetch pmd-src-3.9.zip from http://internap.dl.sourceforge.ne
t/pmd
--->  Verifying checksum(s) for pmd
--->  Extracting pmd
--->  Configuring pmd
--->  Building pmd
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/ma
cports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ja
va_pmd/work/pmd-3.9/bin" && ant dist " returned error 1
Command output:     [javac]                        ^
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.
macports.org_release_ports_java_pmd/work/pmd-3.9/regress/test/net/sourceforge/pm
d/symboltable/TypeSetTest.java:14: cannot find symbol
    [javac] symbol: class TestCase
    [javac] public class TypeSetTest extends TestCase {
    [javac]                                  ^
    [javac] /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.
macports.org_release_ports_java_pmd/work/pmd-3.9/regress/test/net/sourceforge/pm
d/symboltable/VariableUsageFinderFunctionTest.java:3: package junit.framework do
es not exist
    [javac] import junit.framework.TestCase;
    [javac]                        ^
...

Thank you very much. -virgil

Attachments

Portfile-pmd.diff (565 bytes) - added by champlin@… 4 years ago.
PMD Portfile unified diff

Change History

Changed 4 years ago by champlin@…

PMD Portfile unified diff

comment:1 follow-up: ↓ 2 Changed 4 years ago by jmr@…

  • Keywords pmd junit removed
  • Status changed from new to closed
  • Resolution set to duplicate
  • Port changed from java/pmd to pmd

#16649 is not closed...

comment:2 in reply to: ↑ 1 Changed 4 years ago by champlin@…

Replying to jmr@…:

#16649 is not closed...

Thank you for correcting my mistake. -virgil

Note: See TracTickets for help on using tickets.