GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sandeepmasa/sample-java-project at dd3854112b9d976154508b69ce7f8105d90316fa

BranchesTags
Open more actions menu

Latest commit

 

History

29 Commits
29 Commits

Folders and files

NameName
Last commit message
Last commit date
src/sample/java/project
src/sample/java/project
 
 
test/sample/java/project
test/sample/java/project
 
 
.gitignore
.gitignore
 
 
README
README
 
 
UNLICENSE
UNLICENSE
 
 
build.xml
build.xml
 
 
checkstyle.xml
checkstyle.xml
 
 
ivy.xml
ivy.xml
 
 

Repository files navigation

This is just a reference for setting up a new Java project. It
contains some of the little Ant tricks I've learned.

Building this project requires that Ivy be available to Ant. All you
need is ivy.jar in Ant's classpath (in your $CLASSPATH, $ANT_HOME/lib,
or ~/.ant/lib).

You will need to have Astyle installed and in your path for the
"format" target to work. If it's missing, that's fine. It won't affect
any other targets.

Ant will be looking for Checkstyle, which provides the "check"
target. Except the extra target, I think it should work without
it. Like a hardcore bureaucrat, Checkstyle will harshly criticize your
code, requiring you to add every bit of excessive and needless
boilerplate. That can keep some idle hands pretty busy.

Ant will be looking for ProGuard, which provides the "optimize"
target. You should still be able to build the project without it. Only
the "optimize" target will not work.

Note that ProGuard and Checkstyle are needed only in the build
classpath, not your project's classpath. That means you probably don't
want them in lib/. Like Ivy, they should be where Ant can get to them.

I hate coding absolute paths in my build script and I hate including
built files as part of the base project. My philosophy is that the
*environment* should be set up so that the tool can easily find the
external resources they need (JUnit, etc.) from the system, not within
the project. It's the system that provides the libraries. Anyone who
has the proper development environment set up -- one that carries
across many projects -- should be able to clone the repository and do
the build without editing anything or installing anything else into
the project space.

About

Example Ant-based Java project

Resources

Readme
License
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.