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 — Initial checkin to GIT of version 1.1 + package diagram changes · basilv/Java-Examples@2cda128

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Examples
    • .classpath
    • .gitignore
    • .project
    • .settings
      • org.eclipse.jdt.core.prefs
      • org.eclipse.jdt.ui.prefs
    • Examples Tests.launch
    • build.xml
    • ivy.xml
    • ivysettings.xml
    • lib
      • activation.jar
      • antlr-runtime.jar
      • antlr.jar
      • cglib-nodep.jar
      • commons-logging.jar
      • dom4j-sources.jar
      • dom4j.jar
      • hibernate-javadoc.jar
      • hibernate-sources.jar
      • hibernate.jar
      • jaxb-api-sources.jar
      • jaxb-api.jar
      • jaxb-impl-sources.jar
      • jaxb-impl.jar
      • jdepend.jar
      • junit-sources.jar
      • junit.jar
      • log4j-sources.jar
      • log4j.jar
      • servlet-api-sources.jar
      • servlet-api.jar
      • spring-java-config.jar
      • spring.jar
      • stax-api.jar
      • stringtemplate.jar
    • src
      • java/com/basilv/examples
        • annotations
          • ActionExecutor.java
          • AnnotationUsage.java
          • DispatchingServlet.java
          • MyAnnotation.java
          • WebAction.java
          • package.html
        • concurrency
          • DateProcessor.java
          • DateProcessorMultiThreadedTest.java
          • DateProcessorSingleThreadedTest.java
        • dom4j
          • Maze.java
          • MazeXmlConverter.java
          • MazeXmlConverterTest.java
          • Wall.java
          • package.html
        • enums
          • DirectionUsage.java
          • Person.java
          • PersonTableModel.java
          • PersonTableModelUsage.java
          • Terrain.java
          • TerrainUsage.java
          • package.html
        • errorhandling
          • ExceptionInFinallyBlockTest.java
          • ReturnInFinallyBlockTest.java
          • package.html
        • hibernate
          • AuditInterceptor.java
          • Auditable.java
          • BaseDomainObject.java
          • Message.java
          • RegisterInterceptor.java
          • package.html
        • java5
          • PersonServiceImpl.java
          • package.html
        • jaxb
          • XmlBindingTools.java
          • XmlBindingToolsTest.java
          • package.html
        • logging
          • LogExample.java
          • package.html
        • mutableproperties
          • ExampleOne.java
          • ExampleThree.java
          • ExampleTwo.java
          • Order.java
          • OrderUseImmutable.java
          • OrderUseNewObject.java
          • ex4
            • ExampleFive.java
            • ExampleFour.java
            • Order.java
            • package.html
          • package.html
        • overview.html
        • packagediagram
          • BasePackageClass.java
          • PackageDiagramCreatorApp.java
          • subone
            • SubOneClass.java
          • subtwo
            • SubTwoClass.java
        • rmi
          • RemoteTaskExecutor.java
          • Task.java
          • TaskExecutorClient.java
          • TaskExecutorServer.java
          • package.html
        • spring
          • CalculatorService.java
          • Resume.java
          • ResumeRepository.java
          • autowire
            • AutowireConfig.java
            • AutowireConfigTest.java
            • CalculatorServiceImpl.java
            • HardcodedResumeRepository.java
            • package.html
          • componentscan
            • CalculatorServiceImpl.java
            • ComponentScanConfig.java
            • ComponentScanConfigTest.java
            • HardcodedResumeRepository.java
            • package.html
          • explicit
            • CalculatorServiceImpl.java
            • ExplicitConfig.java
            • ExplicitConfigTest.java
            • HardcodedResumeRepository.java
            • package.html
          • package.html
      • private-examples
        • hibernate-Database.cfg.xml
        • hibernate-DatabaseEnvSpecific.cfg.xml.ftl
        • hibernatePrototypeSrc.zip
        • ivy-info.xml
      • release
        • gpl-license.txt
        • index.html
        • style.css

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Examples/.classpath‎

Copy file name to clipboard
+31Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry excluding="**/.svn/**/*" kind="src" path="src/java"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
5+
<classpathentry kind="lib" path="lib/activation.jar"/>
6+
<classpathentry kind="lib" path="lib/antlr-runtime.jar"/>
7+
<classpathentry kind="lib" path="lib/antlr.jar"/>
8+
<classpathentry kind="lib" path="lib/cglib-nodep.jar"/>
9+
<classpathentry kind="lib" path="lib/commons-logging.jar"/>
10+
<classpathentry kind="lib" path="lib/dom4j-sources.jar"/>
11+
<classpathentry kind="lib" path="lib/dom4j.jar"/>
12+
<classpathentry kind="lib" path="lib/hibernate-javadoc.jar"/>
13+
<classpathentry kind="lib" path="lib/hibernate-sources.jar"/>
14+
<classpathentry kind="lib" path="lib/hibernate.jar"/>
15+
<classpathentry kind="lib" path="lib/jaxb-api-sources.jar"/>
16+
<classpathentry kind="lib" path="lib/jaxb-api.jar"/>
17+
<classpathentry kind="lib" path="lib/jaxb-impl-sources.jar"/>
18+
<classpathentry kind="lib" path="lib/jaxb-impl.jar"/>
19+
<classpathentry kind="lib" path="lib/jdepend.jar"/>
20+
<classpathentry kind="lib" path="lib/junit-sources.jar"/>
21+
<classpathentry kind="lib" path="lib/junit.jar"/>
22+
<classpathentry kind="lib" path="lib/log4j-sources.jar"/>
23+
<classpathentry kind="lib" path="lib/log4j.jar"/>
24+
<classpathentry kind="lib" path="lib/servlet-api-sources.jar"/>
25+
<classpathentry kind="lib" path="lib/servlet-api.jar"/>
26+
<classpathentry kind="lib" path="lib/spring-java-config.jar"/>
27+
<classpathentry kind="lib" path="lib/spring.jar"/>
28+
<classpathentry kind="lib" path="lib/stax-api.jar"/>
29+
<classpathentry kind="lib" path="lib/stringtemplate.jar"/>
30+
<classpathentry kind="output" path="build/classes"/>
31+
</classpath>
Collapse file

‎Examples/.gitignore‎

Copy file name to clipboard
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/dist
2+
/build
3+
/buildoutput.txt
4+
/packages.png
5+
/packages.txt
Collapse file

‎Examples/.project‎

Copy file name to clipboard
+17Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>Examples</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.jdt.core.javanature</nature>
16+
</natures>
17+
</projectDescription>
Collapse file

‎Examples/.settings/org.eclipse.jdt.core.prefs‎

Copy file name to clipboardExpand all lines: Examples/.settings/org.eclipse.jdt.core.prefs
+261Lines changed: 261 additions & 0 deletions
Large diffs are not rendered by default.
Collapse file

‎Examples/.settings/org.eclipse.jdt.ui.prefs‎

Copy file name to clipboard
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#Tue Apr 14 05:27:33 MDT 2009
2+
eclipse.preferences.version=1
3+
formatter_profile=_Basil Examples
4+
formatter_settings_version=11
5+
org.eclipse.jdt.ui.ignorelowercasenames=true
6+
org.eclipse.jdt.ui.importorder=java;javax;org;com;
7+
org.eclipse.jdt.ui.ondemandthreshold=2
8+
org.eclipse.jdt.ui.staticondemandthreshold=99
9+
org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8"?><templates/>
Collapse file

‎Examples/Examples Tests.launch‎

Copy file name to clipboard
+16Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="org.eclipse.jdt.junit.launchconfig">
3+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
4+
<listEntry value="/Examples"/>
5+
</listAttribute>
6+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
7+
<listEntry value="4"/>
8+
</listAttribute>
9+
<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value="=Examples"/>
10+
<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
11+
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
12+
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
13+
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value=""/>
14+
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="Examples"/>
15+
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-ea"/>
16+
</launchConfiguration>
Collapse file

‎Examples/build.xml‎

Copy file name to clipboard
+209Lines changed: 209 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,209 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<project name="JavaExamples" default="build"
4+
xmlns:ivy="antlib:org.apache.ivy.ant">
5+
6+
<property environment="env"/>
7+
8+
<property name="module.name" value="JavaExamples"/>
9+
<property name="module.version" value="1.2"/>
10+
11+
12+
<!-- Directory / File properties -->
13+
<property name="source.dir" location="src"/>
14+
<property name="java.source.dir" location="${source.dir}/java"/>
15+
<property name="resources.source.dir" location="${source.dir}/resources"/>
16+
<property name="release.source.dir" location="${source.dir}/release"/>
17+
18+
<property name="lib.dir" location="lib"/>
19+
20+
<property name="dist.dir" location="dist"/>
21+
<property name="classes.dir" location="${dist.dir}/classes"/>
22+
<property name="test.classes.dir" location="dist/classes"/> <!-- Because tests are embedded in the main code. -->
23+
24+
25+
<property name="release.dir" location="${dist.dir}/release"/>
26+
27+
<property name="module.jar" location="${release.dir}/${module.name}.jar"/>
28+
<property name="release.zip" location="${dist.dir}/${module.name}-${module.version}.zip"/>
29+
30+
31+
<!-- Ivy Repository properties -->
32+
<property name="ivy-repository.dir" value="C:/Users/Basil/Dev/IvyRepository"/>
33+
<property name="ivy-repository-pattern"
34+
value="${ivy-repository.dir}/[organisation]/[module]/[revision]/[artifact](-[classifier])-[revision].[ext]"/>
35+
36+
<!-- Ivy Configuration. It is itself located in the repository, but we need to configure it manually. -->
37+
<property name="ivy.version" value="2.1.0-rc1"/>
38+
<property name="ivy.dir" location="${ivy-repository.dir}/org.apache.ivy/ivy/${ivy.version}"/>
39+
<path id="ivy.lib.path">
40+
<fileset dir="${ivy.dir}" includes="ivy-${ivy.version}*.jar"/>
41+
</path>
42+
<taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>
43+
<ivy:configure file="${basedir}/ivysettings.xml" override="true"/>
44+
45+
46+
<!-- Targets -->
47+
48+
<target name="init">
49+
<record name="${basedir}/buildoutput.txt" loglevel="verbose" append="false"/>
50+
</target>
51+
52+
<target name="clean" depends="init">
53+
<delete dir="${dist.dir}"/>
54+
<ivy:cleancache/>
55+
</target>
56+
57+
<target name="resolve-dependencies" depends="init" description="Resolve dependencies for this project.">
58+
<ivy:resolve/>
59+
60+
<!-- For the report using outputpattern="[module]-[conf].[ext]" causes invalid links
61+
between configurations as links are built using default pattern apparently.
62+
-->
63+
<ivy:report todir="${dist.dir}" conf="*" graph="false" />
64+
65+
<ivy:retrieve pattern="${lib.dir}/[artifact](-[classifier]).[ext]" conf="runtime" sync="true"/>
66+
</target>
67+
68+
<target name="compile.pre" depends="init">
69+
<!-- Example of using Ivy CachePath
70+
<ivy:cachepath pathid="ivy.compile.classpath" conf="compile" />
71+
-->
72+
73+
<path id="compile.classpath">
74+
<fileset dir="${lib.dir}" includes="*.jar"/>
75+
</path>
76+
</target>
77+
78+
<target name="test.pre" depends="init">
79+
80+
<path id="runtests.classpath">
81+
<pathelement location="${test.classes.dir}"/>
82+
<pathelement location="${classes.dir}"/>
83+
<fileset dir="${lib.dir}" includes="*.jar"/>
84+
</path>
85+
</target>
86+
87+
<target name="compile" depends="compile.pre">
88+
<mkdir dir="${classes.dir}"/>
89+
<javac debug="on" includeAntRuntime="false"
90+
destdir="${classes.dir}"
91+
classpathref="compile.classpath">
92+
<src path="${java.source.dir}"/>
93+
</javac>
94+
</target>
95+
96+
<target name="test" depends="init, test.pre">
97+
<property name="test.reports.dir" location="${dist.dir}/test-reports"/>
98+
<mkdir dir="${test.reports.dir}"/>
99+
100+
<junit fork="yes" failureproperty="tests.failed">
101+
102+
<classpath refid="runtests.classpath"/>
103+
<formatter type="brief" usefile="yes"/>
104+
<formatter type="brief" usefile="false"/>
105+
106+
<batchtest fork="no" todir="${test.reports.dir}">
107+
<fileset dir="${test.classes.dir}" includes="**/*Test.class" excludes="**/*$*.class **/Tests.class"/>
108+
</batchtest>
109+
</junit>
110+
<fail message="Tests failed." if="tests.failed"/>
111+
</target>
112+
113+
<target name="package.pre" depends="init">
114+
<mkdir dir="${release.dir}"/>
115+
</target>
116+
117+
<target name="package-release-dir" depends="package.pre">
118+
<copy todir="${release.dir}">
119+
<fileset dir="${release.source.dir}"/>
120+
</copy>
121+
122+
<copy todir="${release.dir}">
123+
<fileset dir="${basedir}" includes=".classpath,.project,*.xml"/>
124+
</copy>
125+
126+
<copy todir="${release.dir}/src/java">
127+
<fileset dir="${java.source.dir}"/>
128+
</copy>
129+
</target>
130+
131+
<target name="javadoc" depends="package.pre, package-release-dir">
132+
<property name="javadoc.dir" location="${release.dir}/javadoc"/>
133+
134+
<javadoc
135+
destdir="${javadoc.dir}"
136+
use="true"
137+
access="protected"
138+
failOnError="true"
139+
source="1.5"
140+
linksource="yes"
141+
windowtitle="Java Examples API Documentation"
142+
classpathref="compile.classpath"
143+
overview="${release.dir}/src/java/com/basilv/examples/overview.html"
144+
>
145+
146+
<fileset dir="${release.dir}/src/java" includes="**/*.java" defaultexcludes="yes"/>
147+
148+
<doctitle><![CDATA[<h1>Java Examples API Documentation</h1>]]></doctitle>
149+
<bottom><![CDATA[<small> Java Examples available from <a href="http://www.basilv.com/psd/software">http://www.basilv.com/psd/software</a> Copyright &#169; 2009 by Basil Vandegriend. All Rights Reserved.</small>]]></bottom>
150+
151+
<link href="http://java.sun.com/javase/6/docs/api/"/>
152+
</javadoc>
153+
</target>
154+
155+
<target name="package" depends="package.pre, package-release-dir, javadoc">
156+
<zip destfile="${release.zip}">
157+
<zipfileset dir="${release.dir}" prefix="${module.name}-${module.version}"/>
158+
</zip>
159+
</target>
160+
161+
<target name="dist"
162+
depends="init, compile, package"
163+
description="Produces distributables: compiles and packages the release."/>
164+
165+
<target name="build"
166+
depends="init, dist, test"
167+
description="Produces distributables and tests."/>
168+
169+
<target name="all"
170+
depends="init, clean, resolve-dependencies, build"
171+
description="Cleans and builds."/>
172+
173+
174+
<!-- Target for maintenance of our Ivy Repository. -->
175+
176+
<macrodef name="do-install-from-m2-to-ivyrep">
177+
<!-- These attributes are deliberately named the same as the ivy.xml file. -->
178+
<attribute name="org"/>
179+
<attribute name="name"/>
180+
<attribute name="rev"/>
181+
<attribute name="transitive" default="true"/>
182+
<sequential>
183+
<ivy:install from="maven2-repository" to="ivy-repository"
184+
organisation="@{org}" module="@{name}" revision="@{rev}" transitive="@{transitive}" overwrite="true"/>
185+
<!-- Use overwrite="true" because installing transitive dependencies is otherwise practically impossible.
186+
I'd prefer an option to ignore already-installed modules rather than overwriting. -->
187+
</sequential>
188+
</macrodef>
189+
190+
<target name="install-from-m2-to-ivyrep" depends="init">
191+
<do-install-from-m2-to-ivyrep org="jdepend" name="jdepend" rev="2.9.1" transitive="true"/>
192+
<do-install-from-m2-to-ivyrep org="com.sun.xml.bind" name="jaxb-impl" rev="2.1.10" transitive="true"/>
193+
<do-install-from-m2-to-ivyrep org="log4j" name="log4j" rev="1.2.15" transitive="false"/>
194+
<do-install-from-m2-to-ivyrep org="org.antlr" name="antlr" rev="3.1.3" transitive="true"/>
195+
<do-install-from-m2-to-ivyrep org="org.apache.ivy" name="ivy" rev="2.1.0-rc1" transitive="false"/>
196+
<do-install-from-m2-to-ivyrep org="org.hibernate" name="hibernate" rev="3.2.6.ga" transitive="false"/>
197+
<do-install-from-m2-to-ivyrep org="javax.servlet" name="servlet-api" rev="2.4" transitive="true"/>
198+
<do-install-from-m2-to-ivyrep org="junit" name="junit" rev="4.6" transitive="true"/>
199+
200+
<!-- Install fails due to some optional dependencies that cannot be found or downloaded, apparently
201+
due to errors in the Maven repository. But these dependencies are not needed to compile or test.
202+
It would be nice to be able to specify configurations to install, rather than all of them, which
203+
would be another way to resolve this issue.
204+
-->
205+
<do-install-from-m2-to-ivyrep org="org.springframework" name="spring" rev="2.5.6" transitive="true"/>
206+
207+
</target>
208+
209+
</project>
Collapse file

‎Examples/ivy.xml‎

Copy file name to clipboard
+52Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<ivy-module version="1.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
4+
5+
<info organisation="com.basilv" module="java-examples"/>
6+
7+
<configurations>
8+
<conf name="compile"/>
9+
<conf name="runtime" extends="compile"/>
10+
</configurations>
11+
12+
<dependencies>
13+
14+
<!-- Transitive dependencies not found in M2 repository. -->
15+
<dependency org="log4j" name="log4j" rev="1.2.15" transitive="false"/>
16+
17+
<!-- Transitive = true causes compile of code using JAXB to fail. -->
18+
<dependency org="dom4j" name="dom4j" rev="1.6.1" transitive="false"/>
19+
20+
<dependency org="org.antlr" name="antlr" rev="3.1.3"
21+
conf="compile->master;runtime->default"/>
22+
23+
<!-- JUnit is needed for the main compile as unit tests are included in the main source tree. -->
24+
<dependency org="junit" name="junit" rev="4.5"/>
25+
26+
27+
<dependency org="javax.xml.bind" name="jaxb-api" rev="2.1"/>
28+
29+
<!-- For package dependencies -->
30+
<dependency org="jdepend" name="jdepend" rev="2.9.1"/>
31+
32+
<!-- JAXB implementation only needed at runtime. -->
33+
<dependency org="com.sun.xml.bind" name="jaxb-impl" rev="2.1.10" conf="runtime->*"/>
34+
35+
<dependency org="javax.servlet" name="servlet-api" rev="2.4"/>
36+
37+
<!-- Transitive dependencies not found in M2 repository. Hibernate is only needed for compilation anyways. -->
38+
<dependency org="org.hibernate" name="hibernate" rev="3.2.6.ga" transitive="false"/>
39+
40+
<dependency org="org.springframework" name="spring-java-config" rev="1.0.0.M4" />
41+
42+
<!-- Cannot include optional dependencies because not all could be successfully installed from Maven repository. -->
43+
<dependency org="org.springframework" name="spring" rev="2.5.6"
44+
conf="compile->master;runtime->default"/>
45+
46+
<!-- Include optional dependencies from Spring that we need. -->
47+
<dependency org="cglib" name="cglib-nodep" rev="2.1_3"
48+
conf="compile->master;runtime->default"/>
49+
50+
</dependencies>
51+
52+
</ivy-module>
Collapse file

‎Examples/ivysettings.xml‎

Copy file name to clipboard
+19Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<ivysettings>
2+
<settings defaultResolver="trusted-resolvers" />
3+
4+
<resolvers>
5+
6+
<chain name="trusted-resolvers" returnFirst="true">
7+
8+
<filesystem name="ivy-repository">
9+
<artifact pattern="${ivy-repository-pattern}"/>
10+
<ivy pattern="${ivy-repository-pattern}"/>
11+
</filesystem>
12+
13+
</chain>
14+
15+
<ibiblio name="maven2-repository" m2compatible="true" />
16+
17+
</resolvers>
18+
19+
</ivysettings>
Collapse file

‎Examples/lib/activation.jar‎

Copy file name to clipboard
61.5 KB
Binary file not shown.

0 commit comments

Comments
0 (0)
You are visitor 01402520 — 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.