fix creation of project.xml
This commit is contained in:
parent
f0bbc1b753
commit
8469bb1d16
@ -9,6 +9,7 @@ if (!hasProperty('mainClass')) {
|
|||||||
configurations {
|
configurations {
|
||||||
corelibs
|
corelibs
|
||||||
optlibs
|
optlibs
|
||||||
|
testdatalibs
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@ -187,7 +188,7 @@ task createBaseXml{
|
|||||||
|
|
||||||
def writer = new StringWriter()
|
def writer = new StringWriter()
|
||||||
def xml = new MarkupBuilder(writer)
|
def xml = new MarkupBuilder(writer)
|
||||||
xml.xmlDeclaration(version:'1.0')
|
xml.mkp.xmlDeclaration(version:'1.0')
|
||||||
xml.project(xmlns:"http://www.netbeans.org/ns/project/1"){
|
xml.project(xmlns:"http://www.netbeans.org/ns/project/1"){
|
||||||
type "org.netbeans.modules.apisupport.project"
|
type "org.netbeans.modules.apisupport.project"
|
||||||
configuration {
|
configuration {
|
||||||
@ -225,7 +226,7 @@ task createBaseXml{
|
|||||||
|
|
||||||
def extWriter = new StringWriter()
|
def extWriter = new StringWriter()
|
||||||
def extXml = new MarkupBuilder(extWriter)
|
def extXml = new MarkupBuilder(extWriter)
|
||||||
extXml.xmlDeclaration(version:'1.0')
|
// extXml.mkp.xmlDeclaration(version:'1.0')
|
||||||
extXml.project(xmlns:"http://www.netbeans.org/ns/project/1"){
|
extXml.project(xmlns:"http://www.netbeans.org/ns/project/1"){
|
||||||
type "org.netbeans.modules.apisupport.project"
|
type "org.netbeans.modules.apisupport.project"
|
||||||
configuration {
|
configuration {
|
||||||
@ -288,7 +289,7 @@ task createProjectXml{
|
|||||||
// create J2SE library descriptor xml file
|
// create J2SE library descriptor xml file
|
||||||
def libraryWriter = new StringWriter()
|
def libraryWriter = new StringWriter()
|
||||||
def libraryXml = new MarkupBuilder(libraryWriter)
|
def libraryXml = new MarkupBuilder(libraryWriter)
|
||||||
// xml.xmlDeclaration(version:'1.0')
|
// xml.mkp.xmlDeclaration(version:'1.0')
|
||||||
libraryWriter << '<?xml version="1.0" encoding="UTF-8"?>' << eol
|
libraryWriter << '<?xml version="1.0" encoding="UTF-8"?>' << eol
|
||||||
libraryWriter << '<!DOCTYPE library PUBLIC "-//NetBeans//DTD Library Declaration 1.0//EN" "http://www.netbeans.org/dtds/library-declaration-1_0.dtd">' << eol
|
libraryWriter << '<!DOCTYPE library PUBLIC "-//NetBeans//DTD Library Declaration 1.0//EN" "http://www.netbeans.org/dtds/library-declaration-1_0.dtd">' << eol
|
||||||
libraryXml.library(version:"1.0", encoding: "UTF-8"){
|
libraryXml.library(version:"1.0", encoding: "UTF-8"){
|
||||||
@ -325,7 +326,7 @@ task createProjectXml{
|
|||||||
// create layer.xml file with entries of library xml files
|
// create layer.xml file with entries of library xml files
|
||||||
def layerWriter = new StringWriter()
|
def layerWriter = new StringWriter()
|
||||||
def layerXml = new MarkupBuilder(layerWriter)
|
def layerXml = new MarkupBuilder(layerWriter)
|
||||||
// layerXml.xmlDeclaration(version:'1.0')
|
// layerXml.mkp.xmlDeclaration(version:'1.0')
|
||||||
layerWriter << '<?xml version="1.0" encoding="UTF-8"?>' << eol
|
layerWriter << '<?xml version="1.0" encoding="UTF-8"?>' << eol
|
||||||
layerWriter << '<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.1//EN" "http://www.netbeans.org/dtds/filesystem-1_1.dtd">' << eol
|
layerWriter << '<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.1//EN" "http://www.netbeans.org/dtds/filesystem-1_1.dtd">' << eol
|
||||||
layerXml.filesystem{
|
layerXml.filesystem{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<xmlDeclaration version='1.0' />
|
<?xml version='1.0'?>
|
||||||
<project xmlns='http://www.netbeans.org/ns/project/1'>
|
<project xmlns='http://www.netbeans.org/ns/project/1'>
|
||||||
<type>org.netbeans.modules.apisupport.project</type>
|
<type>org.netbeans.modules.apisupport.project</type>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
<xmlDeclaration version='1.0' />
|
|
||||||
<project xmlns='http://www.netbeans.org/ns/project/1'>
|
<project xmlns='http://www.netbeans.org/ns/project/1'>
|
||||||
<type>org.netbeans.modules.apisupport.project</type>
|
<type>org.netbeans.modules.apisupport.project</type>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user