Fixed FileIssue formatting and extended properties.
* The extended properties table was using the maxKeyLength for both keys and values. * FileIssue was not persisting the file when extended properties were updated.
This commit is contained in:
parent
31b9802477
commit
952064d903
@ -1,11 +1,11 @@
|
|||||||
#Thu, 08 Dec 2011 14:35:45 -0600
|
#Thu, 08 Dec 2011 15:46:01 -0600
|
||||||
#Sat Apr 24 17:08:00 CDT 2010
|
#Sat Apr 24 17:08:00 CDT 2010
|
||||||
build.dir=build
|
build.dir=build
|
||||||
src.dir=src
|
src.dir=src
|
||||||
lib.shared.dir=../shared-libs
|
lib.shared.dir=../shared-libs
|
||||||
test.dir=test
|
test.dir=test
|
||||||
build.number=0
|
build.number=2
|
||||||
version=3.2.1
|
version=3.2.2
|
||||||
name=libpit
|
name=libpit
|
||||||
lib.dir=lib
|
lib.dir=lib
|
||||||
lib.local=true
|
lib.local=true
|
||||||
|
@ -110,6 +110,10 @@ public class FileIssue extends Issue {
|
|||||||
super.setText(text)
|
super.setText(text)
|
||||||
writeFile() }
|
writeFile() }
|
||||||
|
|
||||||
|
public def propertyMissing(String name, def value) {
|
||||||
|
super.propertyMissing(name, value)
|
||||||
|
writeFile() }
|
||||||
|
|
||||||
boolean deleteFile() { return source.deleteDir() }
|
boolean deleteFile() { return source.deleteDir() }
|
||||||
|
|
||||||
public static boolean isValidFilename(String name) {
|
public static boolean isValidFilename(String name) {
|
||||||
@ -153,7 +157,7 @@ public class FileIssue extends Issue {
|
|||||||
|
|
||||||
extOutput[ks] = vs
|
extOutput[ks] = vs
|
||||||
if (ks.length() > maxKeyLen) { maxKeyLen = ks.length() }
|
if (ks.length() > maxKeyLen) { maxKeyLen = ks.length() }
|
||||||
if (vs.length() > maxKeyLen) { maxValLen = vs.length() } }
|
if (vs.length() > maxValLen) { maxValLen = vs.length() } }
|
||||||
|
|
||||||
result.append("=".multiply(maxKeyLen + 1))
|
result.append("=".multiply(maxKeyLen + 1))
|
||||||
result.append(" ")
|
result.append(" ")
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#Thu, 08 Dec 2011 14:59:30 -0600
|
#Thu, 08 Dec 2011 15:46:09 -0600
|
||||||
build.dir=build
|
build.dir=build
|
||||||
src.dir=src
|
src.dir=src
|
||||||
build.jar=pit-cli-${application.version}.${build.number}.jar
|
build.jar=pit-cli-${application.version}.${build.number}.jar
|
||||||
build.number=0
|
build.number=2
|
||||||
version=3.2.1
|
version=3.2.2
|
||||||
name=pit-cli
|
name=pit-cli
|
||||||
lib.dir=lib
|
lib.dir=lib
|
||||||
lib.local=true
|
lib.local=true
|
||||||
|
@ -83,7 +83,7 @@ cli._(longOpt: 'version', 'Display PIT version information.')
|
|||||||
// ======== Parse CLI Options ======== //
|
// ======== Parse CLI Options ======== //
|
||||||
// =================================== //
|
// =================================== //
|
||||||
|
|
||||||
def VERSION = "3.2.1"
|
def VERSION = "3.2.2"
|
||||||
def opts = cli.parse(args)
|
def opts = cli.parse(args)
|
||||||
def issuedb = [:]
|
def issuedb = [:]
|
||||||
def workingDir = new File('.')
|
def workingDir = new File('.')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user