Unverified Commit 4075bfc1 authored by Marko Zivic's avatar Marko Zivic Committed by GitHub
Browse files

Merge pull request #503 from gnodet/fix-xml-namespaces

Fix XML namespaces wrongly using https
parents 5b86b67f 91f49aa1
Loading
Loading
Loading
Loading
+6 −6
Changes for __tests__/toolchains.test.ts: 6 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -77,9 +77,9 @@ describe('toolchains tests', () => {
    };

    const result = `<?xml version="1.0"?>
<toolchains xmlns="https://maven.apache.org/TOOLCHAINS/1.1.0"
  xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="https://maven.apache.org/TOOLCHAINS/1.1.0 https://maven.apache.org/xsd/toolchains-1.1.0.xsd">
<toolchains xmlns="http://maven.apache.org/TOOLCHAINS/1.1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/TOOLCHAINS/1.1.0 https://maven.apache.org/xsd/toolchains-1.1.0.xsd">
  <toolchain>
    <type>jdk</type>
    <provides>
@@ -248,9 +248,9 @@ describe('toolchains tests', () => {
    };

    const expectedToolchains = `<?xml version="1.0"?>
<toolchains xmlns="https://maven.apache.org/TOOLCHAINS/1.1.0"
  xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="https://maven.apache.org/TOOLCHAINS/1.1.0 https://maven.apache.org/xsd/toolchains-1.1.0.xsd">
<toolchains xmlns="http://maven.apache.org/TOOLCHAINS/1.1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/TOOLCHAINS/1.1.0 https://maven.apache.org/xsd/toolchains-1.1.0.xsd">
  <toolchain>
    <type>jdk</type>
    <provides>
+3 −3
Changes for dist/setup/index.js: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -103974,9 +103974,9 @@ function generateToolchainDefinition(original, version, vendor, id, jdkHome) {
    else
        xmlObj = xmlbuilder2_1.create({
            toolchains: {
                '@xmlns': 'https://maven.apache.org/TOOLCHAINS/1.1.0',
                '@xmlns:xsi': 'https://www.w3.org/2001/XMLSchema-instance',
                '@xsi:schemaLocation': 'https://maven.apache.org/TOOLCHAINS/1.1.0 https://maven.apache.org/xsd/toolchains-1.1.0.xsd',
                '@xmlns': 'http://maven.apache.org/TOOLCHAINS/1.1.0',
                '@xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance',
                '@xsi:schemaLocation': 'http://maven.apache.org/TOOLCHAINS/1.1.0 https://maven.apache.org/xsd/toolchains-1.1.0.xsd',
                toolchain: [
                    {
                        type: 'jdk',
+3 −3
Changes for src/toolchains.ts: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -104,10 +104,10 @@ export function generateToolchainDefinition(
  } else
    xmlObj = xmlCreate({
      toolchains: {
        '@xmlns': 'https://maven.apache.org/TOOLCHAINS/1.1.0',
        '@xmlns:xsi': 'https://www.w3.org/2001/XMLSchema-instance',
        '@xmlns': 'http://maven.apache.org/TOOLCHAINS/1.1.0',
        '@xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance',
        '@xsi:schemaLocation':
          'https://maven.apache.org/TOOLCHAINS/1.1.0 https://maven.apache.org/xsd/toolchains-1.1.0.xsd',
          'http://maven.apache.org/TOOLCHAINS/1.1.0 https://maven.apache.org/xsd/toolchains-1.1.0.xsd',
        toolchain: [
          {
            type: 'jdk',