Ticket #1437 (assigned task)

Opened 5 months ago

Last modified 3 months ago

Provide install,uninstall and check Makefile rules for java components

Reported by: strk Owned by: delawen
Priority: medium Milestone: PostGIS 2.1.0
Component: java Version: trunk
Keywords: Cc:

Description

We need the following Makefile rules for java components:

  • all - builds what needs to be built...
  • clean - removes built files
  • distclean - what clean does plus removes whatever was generated by ./configure
  • check - runs regress tests

I understand the new preferred build tool for java components is maven, but even if so we want to wrap maven calls into Makefile rules.

Attachments

ant_rules.diff Download (5.7 KB) - added by delawen 3 months ago.

Change History

Changed 3 months ago by delawen

Changed 3 months ago by delawen

  • status changed from new to assigned

I attached a patch to provide ant rules to execute maven.

Changed 3 months ago by strk

So we need both ant _and_ maven ? Our final goal is to have Makefile rules here...

Changed 3 months ago by delawen

No, ant downloads first all jars required.

Changed 3 months ago by delawen

And on "distclean" removes all jars downloaded leaving the environment as was before building it.

Changed 3 months ago by strk

I don't really like the idea of a build process downloading binaries from the net. It's kind of nice-to-have support for those choosing to do it but I'd rather rely on packages installed by other means (package managers and so on).

In any case I've played a bit with it and found that the download keeps happening on every call: ant build; ant check; ant build; all of them re-download something.

Also, I'm not sure 'ant check' is really running checks, while I see a few "test" targets (offline, online) which don't seem to work.

Changed 3 months ago by strk

I've committed your new build.xml in r9236 together with new Makefile rules. Still missing: install/uninstall rules and a "check" rule actually doing something.

Changed 3 months ago by strk

  • summary changed from Provide standard Makefile rules for java components to Provide install,uninstall and check Makefile rules for java components
  • milestone changed from PostGIS 2.0.0 to PostGIS 2.1.0
Note: See TracTickets for help on using tickets.