Refreshed from original download
This commit is contained in:
parent
634f73ff07
commit
811220c396
@ -8,10 +8,13 @@ for Java 8
|
||||
[Click here](https://github.com/BruceEckel/TIJ4-Refreshed-Examples/archive/master.zip) to download the zip file. Unzip the file into a directory of your choice.
|
||||
|
||||
## Build the Examples ##
|
||||
1. Install the latest version of Java 8 (JDK8). (Use 32-bit version on Windows).
|
||||
1. Install the latest version of Java 8 (JDK8). (Use the 32-bit version on Windows because of some library issues).
|
||||
|
||||
1. Install Apache Ant. Follow the instructions [here](https://ant.apache.org/manual/install.html#getting).
|
||||
|
||||
1. Add the path to the directory where you unpacked the examples to your CLASSPATH.
|
||||
|
||||
1. Start a command prompt in the directory where you installed the examples. If your installation is successful, you should be able to type **ant build** and build everything. **ant run** will build AND run the examples. You may initially get some error messages telling you to install additional packages, but eventually you should get through the whole build process successfully.
|
||||
1. Start a command prompt in the directory where you installed the examples. If your installation is successful, you should be able to type **ant build** and build everything. **ant run** will build AND run the examples. You will initially get some error messages instructing you to install specified packages, but eventually you should get through the whole build process successfully.
|
||||
|
||||
|
||||
Report bugs in the examples or in the book [here](https://github.com/BruceEckel/TIJ4-Refreshed-Examples/issues).
|
@ -1,15 +1,15 @@
|
||||
//: annotations/InterfaceExtractorProcessorFactory.java
|
||||
// APT-based annotation processing.
|
||||
package annotations;
|
||||
/*import com.sun.mirror.apt.*;
|
||||
import com.sun.mirror.declaration.*;*/
|
||||
import com.sun.mirror.apt.*;
|
||||
import com.sun.mirror.declaration.*;
|
||||
import java.util.*;
|
||||
|
||||
public class InterfaceExtractorProcessorFactory
|
||||
implements javax.annotation.processing.Processor {
|
||||
public javax.annotation.processing.Processor getProcessorFor(
|
||||
Set<javax.lang.model.element.TypeElement> atds,
|
||||
javax.annotation.processing.ProcessingEnvironment env) {
|
||||
implements AnnotationProcessorFactory {
|
||||
public AnnotationProcessor getProcessorFor(
|
||||
Set<AnnotationTypeDeclaration> atds,
|
||||
AnnotationProcessorEnvironment env) {
|
||||
return new InterfaceExtractorProcessor(env);
|
||||
}
|
||||
public Collection<String> supportedAnnotationTypes() {
|
@ -153,7 +153,7 @@
|
||||
fork="true"/>
|
||||
</target>
|
||||
|
||||
<!-- <target name="TableCreator">
|
||||
<target name="TableCreator">
|
||||
<java
|
||||
classname="annotations.database.TableCreator"
|
||||
classpath="${java.class.path};${basedir};${basedir}/.."
|
||||
@ -184,7 +184,7 @@
|
||||
<arg value="-s"/>
|
||||
<arg value="database"/>
|
||||
</exec>
|
||||
</target> -->
|
||||
</target>
|
||||
|
||||
<target
|
||||
depends="build"
|
||||
@ -203,8 +203,8 @@
|
||||
<antcall target="StackLStringTest"/>
|
||||
<antcall target="UseCaseTracker"/>
|
||||
<antcall target="TableCreator"/>
|
||||
<!-- <antcall target="InterfaceExtractorProcessor"/>
|
||||
<antcall target="TableCreationProcessorFactory"/> -->
|
||||
<antcall target="InterfaceExtractorProcessor"/>
|
||||
<antcall target="TableCreationProcessorFactory"/>
|
||||
<delete file="failures"/>
|
||||
</target>
|
||||
|
||||
|
@ -46,7 +46,7 @@
|
||||
classname="People"
|
||||
classpath="${java.class.path};${basedir};${basedir}/.."
|
||||
dir="../xml/"
|
||||
failonerror="false"
|
||||
failonerror="true"
|
||||
fork="true"/>
|
||||
</target>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user