Switch to unified view

a/tool/src/spdxlib/DocumentCreate.java b/tool/src/spdxlib/DocumentCreate.java
...
...
28
 * @author Nuno Brito, 1st of November 2013 in Darmstadt, Germany.
28
 * @author Nuno Brito, 1st of November 2013 in Darmstadt, Germany.
29
 *  nuno.brito@triplecheck.de | http://nunobrito.eu
29
 *  nuno.brito@triplecheck.de | http://nunobrito.eu
30
 */
30
 */
31
public class DocumentCreate {
31
public class DocumentCreate {
32
32
33
    // settings to be changed when necessary
34
    public String 
35
            versionSPDX = "SPDX-1.2",
36
            licensePackage = "CC-BY-4.0",
37
            creatorSPDX = "TripleCheck " + core.version;
38
    
39
    
33
    public String 
40
    public String 
34
            // official field names
41
            // official field names
35
            PackageName = null,
42
            PackageName = null,
36
            PackageLicenseConcluded = "NOASSERTION",
43
            PackageLicenseConcluded = "NOASSERTION",
37
            packageDownloadLocation = "NOASSERTION",
44
            packageDownloadLocation = "NOASSERTION",
...
...
100
        
107
        
101
        filename = filename + ".spdx";
108
        filename = filename + ".spdx";
102
        
109
        
103
        output =  
110
        output =  
104
                  addParagraph("SPDX Document Information")
111
                  addParagraph("SPDX Document Information")
105
                + addText("SPDXVersion: SPDX-1.2")
112
                + addText("SPDXVersion: " + versionSPDX)
106
                + addText("DataLicense: CC-BY-4.0")
113
                + addText("DataLicense: " + licensePackage)
107
                + "\n"
114
                + "\n"
108
                
115
                
109
                + addParagraph("Creation Information")
116
                + addParagraph("Creation Information")
110
                + addText("Creator: " + System.getProperty("user.name"))
117
                + addText("Creator: " + System.getProperty("user.name"))
111
                + addText("Creator: Tool: TripleCheck Studio " + core.version)
118
                + addText("Creator: Tool: " + creatorSPDX)
112
                + addText("Created: " + textDate)
119
                + addText("Created: " + textDate)
113
                + "\n"
120
                + "\n"
114
                
121
                
115
                + addParagraph("Package Information")
122
                + addParagraph("Package Information")
116
                + "PackageName: "  + folderSourceCode.getName()
123
                + "PackageName: "  + folderSourceCode.getName()