Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Grouper API javadoc is here:

Grouper 2.3: https://cdn.rawgit.com/Internet2/grouper/GROUPER_2_3_BRANCH/grouper/doc/api/

This is updated by running the "javadocFoSvn" ant task in the api, sync, and commit

Note, you can change: GROUPER_2_3_BRANCH with the branch to look at, though 2.3 is up to date as of 6/23/2017

Here is an example of Javadoc in CVS with ViewVC

There are some advantages to Javadoc being stored in CVS and accessible over viewVC:

  1. Someone checking out the project can see docs without building (sometimes figuring out config files can be time consuming)
  2. Javadoc would be versioned, and we would be able to browse any branch, any time
  3. The history of the documentation with comments would be able to be viewed (as long as we commit the new javadoc when committing the code)
  4. It would be instantly available (note there is a delay of committing to being viewable on ViewVC of an hour or more), no need to move to a static server

There is a disadvantage that if ViewVC goes away we will have stale links...  this is from SteveO:

No Format

"we intend to support viewvc or something like it going forward.

we don't guarantee that we will keep urls the same if we update to a new piece of software but i do not foresee that anytime soon."

To get Javadoc to work on ViewVC, some massaging needs to happen:

    1. The branch will be in the URL, so the branch needs to be known by the build script, so get this from a new property in build.properties

No Format

#cvs branch
cvs.branch=HEAD

    Note: If the code is branched, this property will need to be changed in the new branch...   it might be possible to get from a CVS metadata file...

    2. The javadoc generation should not commit new files each time it is generated unless something changes.  So the timestamp should be removed. (-notimestamp)

No Format

<javadoc destdir="doc/api" classpathref="ws.class.path"       access="public"
			additionalparam="-notimestamp" >
			<packageset dir="src/grouper-ws" defaultexcludes="yes">
				<include name="edu/internet2/middleware/grouper/**" />

			</packageset>

			<link href="http://struts.apache.org/1.2.x/api/"       />
			<link href="http://java.sun.com/j2ee/sdk_1.3/techdocs/api"       />
			<link href="http://java.sun.com/j2se/1.4.2/docs/api"       />

		</javadoc>

    3. After the javadoc is generated, the links need to be changed so that it is compatible with the URL params in viewvc... (see example in grouper-ws)

...