19-Feb-2013 | Added Java question about
ignored package-info.java
|
---|---|
19-Feb-2013 | Added DrJava question about JUnit 4 |
06-Feb-2013 | Translated and updated |
PrePostDoclet
in NetBeans?
final
parameters?
package-info.java
ignored by javadoc, and how can I fix this?
When you think you will not be able to meet a deadline, then you can submit a timely and motivated request for a deadline extension with the 2IP15 coordinator.
In such a request, always include
If the deadline has already expired, then you need to submit your request as soon as possible. Explain in the motivation also why the request comes so late.
A rejected submission does not count, and it needs to be corrected. Proceed as with a missed deadline (because you did not fulfil the requiremens within the deadline). Mention as motivation that you want to correct a rejected submission, and explain why you think it was rejected.
Do this immediatly after seeing the rejection and do not delay this.
If you are not satisfied with the result of an assignment and you think you can do better, then you can request a retry.
Proceed as with a missed deadline. Mention as motivation that you want to improve the result for the assignment, and explain what the nature of this improvement will be.
Note that not all requests for retries will be honored. Furthermore, for graded assignments, there will be an automatic deduction, and the requirements will possibly be checked more strictly.
If you do not understand something, then you can consult
If that does not resolve your questions, then
As of 13 Feb 2013, the course website and included downloads (except for material with restricted access) are also available in a Subversion repository. This repository has public read access.
https://svn.win.tue.nl/viewvc/2IP15_2012-2013_Student_Material
https://svn.win.tue.nl/repos/2IP15_2012-2013_Student_Material
Suggested way of using it:
GEWIS, the study association of the Department of Mathematics & Computer Science at TU/e, offers a free service for students to obtain a personal Subversion repository. See Projexy.
Configuration management is not a topic in the course 2IP15. You can consult Common Configuration Management Tasks: How to Do Them with Subversion.
We use NetBeans 7.2. That is, NetBeans projects that we make available will have been made with NetBeans 7.2.
There can be problems when opening such a project with an older version of NetBeans. If you make a project with an older version of NetBeans, then we often can process it (but there is no guarantee). If you use a newer version, then possibly we cannot open it, and cannot provide assistance or evaluate it.
If everyone uses the save version of NetBeans, then it is easier for us to address issues.
PrePostDoclet
in NetBeans?PrePostDoclet.jar
.
-docletpath dp -doclet nl.tue.doclets.PrePostDoclet
where dp
is the absolute path to the jar-file
(including PrePostDoclet.jar
).
SQE Update Center
http://deadlock.netbeans.org/hudson/job/sqe/lastStableBuild/artifact/build/full-sqe-updatecenter/updates.xml
checkstyle-2ip15.xml
checkstyle-2ip15.xml
You need to repair a configuration file. This screencast explains how to do it. Here is a summary.
/.../nbproject/build-impl.xml:1195: No source files and no packages have been specified. BUILD FAILED (total time: 0 seconds)
build-impl.xml
,
and that file will open in the editor at a line with
a <javadoc ...>
tag.
<fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}">
*.java,
(including the comma), yielding
<fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
-ea
NetBeans stores some information about projects in a cache. This cache is not cleared by restarting NetBeans or restarting the operating system.
If information in the cache is inconsistent or corrupted, then NetBeans can be very persistent in giving incorrect error messages (e.g. Duplicate class or Class not found).
You can manually clear the cache.
You can try:
Go to Tools > Plugins > Installed tab > Select the Spellchecker plugin > Press Deactivate > Restart NetBeans
Alternatively, you can disable it for certain file types only:
PrePostDoclet
in DrJava?PrePostDoclet.jar
.
-author -version -docletpath dp -doclet nl.tue.doclets.PrePostDoclet
where dp
is the absolute path to the jar-file
(including PrePostDoclet.jar
).
junit-4.10.jar
on your machine.
junit-4.10.jar
.
Xxx.java
and XxxTest.java
files
for testing.
run org.junit.runner.JUnitCore XxxTest
We use Java 7. However, most of the language constructs that appear in this course are available in Java 5.
final
parameters?
The modifier final
on a parameter in the
header of a method definition
concerns only the implementation,
not the specification.
That is why you will not see final
in extracted
javadoc.
For the implementation, it means that the method body cannot change this parameter (the compiler will enforce that). This offers several advantages:
N.B. If the parameter concerns a reference (to an object), then the method body cannot make this parameter refer to another object. However, when the object is mutable, the method body can change the object's state!
package-info.java
ignored by javadoc, and how can I fix this?
It is a
known limitation
that package-info.java
in an otherwise empty package
is not processed by javadoc.
It is not unreasonable to have such package directories,
especially at the top level.
Workaround: Include a dummy class to make javadoc notice the package documentation and process it:
package ...; /** * Exists only to enable package-info.java to be processed by javadoc. */ class Dummy { }
By making it package-private,
this dummy class itself will not show up in the javadoc output,
unless you specify the private
or package
option in javadoc.
Currently, there is no on-line user documentation for the new peach³ web interface. The peach³ FAQ for students explains how to accomplish some common tasks.
You need to register for 2IP15 via Oase. This registration is copied by peach³ within an hour.
In case of further problems, contact the 2IP15 coordinator.
System failures can be reported to E.T.J.Scheffers@tue.nl.
Two common reasons are:
package
statements in your soure files.
Currently, peach³ cannot handle source files in packages.