Peter Reilly
f958e23640
checkstyle
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@470587 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Stefan Bodewig
2e897819a8
copy2license.pl
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@439418 13f79535-47bb-0310-9956-ffa450edef68
19 years ago
Jacobus Martinus Kruithof
176d949191
Removing unused imports.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@357509 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Stefan Bodewig
c51cce56b8
support for filesystem based resource collections in <signjar> and VerifyJar
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@349639 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Matthew Jason Benson
5a4fe63383
Fix comparison w/ exposed NPE
PR: 36093
Obtained from: Dave Brosius
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278513 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Jacobus Martinus Kruithof
653aa05d13
removed unused imports
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278418 13f79535-47bb-0310-9956-ffa450edef68
20 years ago
Stefan Bodewig
02c264aee4
name hiding
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278108 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
450c0f1f2f
Factor out a base classs and add a verification task, a verification which cannot rely on return codes as a success metric, as the program returns 0 even for invalid jars. Hence the disabled test
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278052 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
b41196e3ea
-TSA support, bug 32390
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278050 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
abf8e1ecce
-tests for old and new signjar features written; working
-signjar test patched for offline testing
-fixed SignJar to pass the tests
-doc updates to match tested code
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278049 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
05a18ba69b
can't have checkstyle whining, can we?
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278048 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
2e717000bd
revert reformatted license
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278047 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
3b2ee53658
This is an interim checkin, with new features and some refactoring. All existing (minimal) tests should work, let's see what gump thinks.
This is still a work in progress...
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278044 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Steve Loughran
38e8c82493
This commit eliminates all (but one) use of Project.createTask("some name") from the codebase. It also sets up all created tasks using the new Task.bindToOwner call.
I'm tempted to retrofit Task.bindToOwner back to the 1.6.x codebase, for the benefit of third party tasks; same for the extra constructors for exec and java. Thoughts?
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277700 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
90c28ffdf9
Move some validation into execute();
remove unnecessary guards against storepass == null.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277630 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Matthew Jason Benson
c9028f9f98
Tighten security by sending storepass and keypass to signjar
via the input stream of the forked process.
Also, create signjar's helper ExecTask instance directly rather than by
typedef discovery mechanisms.
PR: 33433
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277629 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Jacobus Martinus Kruithof
257dadeaf0
Make use of FileUtils in a uniform way via the getFileUtils method and a static final reference in the using files.
Also removed unused/* imports along the way.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277295 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
99055de433
stylecheck
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277094 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
c55c4a0106
make the preserveLastModified field private
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277080 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
6a3d5030bb
add new preservelastmodified attribute to signjar
PR: 30987
Obtained from: Ignacio Coloma
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277079 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
0adae3872f
* Use <issigned> from <signjar>
* Refactor <issigned> by moving the test into a static method so it is
easier to use from a different task.
* Avoid IndexOutOfBoundsException if name is shorter than eight characters.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277066 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Stefan Bodewig
db48fbb829
Various checkstyle violations
Submitted by: Larry Shatzer
And some
(untabify (point-min) (point-max))
on some files.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277063 13f79535-47bb-0310-9956-ffa450edef68
21 years ago
Peter Reilly
52a4c5f901
Misc. corrections in SignJar.java
PR: 28999
Obtained from: Jesse Glick
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276454 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Steve Loughran
122c6ddd9e
A new uptodate test that includes granularity. the
intent is to move all date tests to this single place, to eliminate inconsistencies.
The only place I use it is signjar, which, by virtue of the fact there is no signjar test, means I know it wont break the tests.
Also, cleaned up the reflection hacks for 1.1.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276381 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Peter Reilly
c885f56836
remove authors from files
PR: 27177
Obtained from: J.M. (Martijn) Kruithof
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276208 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
278781dcd6
Copyright owner is The Apache Software Foundation
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276065 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
66555ca10d
Remove trailing spaces in all java files
in order to make checkstyle happy
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276017 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Antoine Levy-Lambert
ca1513552f
Switch to Apache Software License 2.0
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276010 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
3a35c7d914
style
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274858 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Conor MacNeill
e580392c2d
More cleanup
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274776 13f79535-47bb-0310-9956-ffa450edef68
22 years ago
Stefan Bodewig
5877089485
Fix <signjar>'s documentation (jar attribute is not required).
PR: 18876
At the same time fix the broken "do I have fileset child elements"
check and warn users if nested filesets are ignored.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274427 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
1dc8a07905
Remove Jakarta Project from license
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274040 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Conor MacNeill
05aec1874f
Search for jarsigner in JAVA_HOME using standard JDK tool search
(JavaEnvUtils is cool)
PR: 11175
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273808 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Conor MacNeill
5034769eb7
Restore ability of signjar keystore to take a URL
PR: 10672
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273807 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Conor MacNeill
2e83cb6a0d
Add maxmemory option to control memory of the jarsigner VM
revert sigfile to a String - does not make sense to be a File
Added a testcase with keystore for signjar
PR: 1284, 10754
Submitted by: Jonathan Keller
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273684 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Peter Donald
8f413c1208
Remove unused imports, remove glob imports, sort imports.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273169 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Peter Donald
28b68ab7d0
Encapsulate usage of project object rather than allowing objects 7 subclasses acessing a protected variable of their super super super .... class.
Deprecated the variable so that that anyone directly referencing variable will get warning and suggestion to use the accessor.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273155 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Magesh Umasankar
6bd8d6e938
Merge changes made to 1.5 Beta2.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272967 13f79535-47bb-0310-9956-ffa450edef68
23 years ago
Stefan Bodewig
34528dbf65
spread the usage of JavaEnvUtils
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272552 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
80080d456c
Reduce a small number of long lines
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272443 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Conor MacNeill
c6c232893c
Various coding standard fixes
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272418 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
2d446f3df2
Cosmetics
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272400 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
7fec7616d1
Changing "ant:task" to "ant.task" to avoid JDK 1.4 javadoc warnings (XDoclet has been modified to handle this separator too).
Updating the majority of the rest of the tasks with the XDoclet tags. The generated defaults.properties is *almost* the same as the current hand maintained one!
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271678 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
0b949aa8cd
disable test case that could have never passed (but strangely did for
several months).
Oh, yes, in case I haven't said so yet: Happy new year everybody.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271600 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Erik Hatcher
10aeeab05b
XDoclet fun!
These are harmless Javadoc comment additions for use with the proposal/xdocs runs.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271582 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
5e33fe272b
Fix static and unused variable
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270901 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stefan Bodewig
f3577cdb5c
License police on task definitions:
(1) Make sure there is a Copyright notice on all files.
(2) Make sure all years in which a file has been modified are
listed.
(3) Make sure the format is consistent, i.e. separate consecutive
years with a dash, not a comma.
(4) Change some references from Tomcat to Ant.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270658 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
9f2aca50e3
Fix bad coding style.
then/else parts of if statement and loop body must always been enclosed
in a block statement.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270629 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Peter Donald
6239084cd3
Fixed bug in SignJar not properly handling nested filesets.
Submitted by: Michael Bayne <mdb@samskivert.com>
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269927 13f79535-47bb-0310-9956-ffa450edef68
24 years ago
Stephane Bailliez
d12e6411cc
Code clean up:
- removed useless/duplicate imports
- added explicit imports rather than *
- changed specifiers order to be conform to JLS.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269827 13f79535-47bb-0310-9956-ffa450edef68
24 years ago