-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix migration maps not being readable by IntelliJ IDEA
- Loading branch information
1 parent
1f40679
commit 64c51d9
Showing
11 changed files
with
123 additions
and
32 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
src/main/java/net/fabricmc/mappingio/format/intellij/MigrationMapConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright (c) 2024 FabricMC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package net.fabricmc.mappingio.format.intellij; | ||
|
||
import org.jetbrains.annotations.ApiStatus; | ||
|
||
@ApiStatus.Internal | ||
public final class MigrationMapConstants { | ||
private MigrationMapConstants() { | ||
} | ||
|
||
public static final String ORDER_KEY = "migrationmap:order"; | ||
public static final String MISSING_NAME = "Unnamed migration map"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 8 additions & 7 deletions
15
src/test/resources/read/repeated-elements/migration-map.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<migrationMap> | ||
<entry oldName="class_1" newName="class1Ns0Rename0" type="class" /> | ||
<entry oldName="class_1" newName="class1Ns0Rename" type="class" /> | ||
<entry oldName="class_1$class_2" newName="class1Ns0Rename$class2Ns0Rename0" type="class" /> | ||
<entry oldName="class_1$class_2" newName="class1Ns0Rename$class2Ns0Rename" type="class" /> | ||
<entry oldName="class_3" newName="class3Ns0Rename0" type="class" /> | ||
<entry oldName="class_3" newName="class3Ns0Rename" type="class" /> | ||
<name value="repeated-elements"/> | ||
<order value="0"/> | ||
<entry oldName="class_1" newName="class1Ns0Rename0" type="class"/> | ||
<entry oldName="class_1" newName="class1Ns0Rename" type="class"/> | ||
<entry oldName="class_1$class_2" newName="class1Ns0Rename$class2Ns0Rename0" type="class"/> | ||
<entry oldName="class_1$class_2" newName="class1Ns0Rename$class2Ns0Rename" type="class"/> | ||
<entry oldName="class_3" newName="class3Ns0Rename0" type="class"/> | ||
<entry oldName="class_3" newName="class3Ns0Rename" type="class"/> | ||
</migrationMap> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<migrationMap> | ||
<entry oldName="class_2" newName="class2Ns0Rename" type="class" /> | ||
<entry oldName="class_5" newName="class5Ns0Rename" type="class" /> | ||
<entry oldName="class_7$class_8" newName="class_7$class8Ns0Rename" type="class" /> | ||
<entry oldName="class_13$class_14" newName="class_13$class14Ns0Rename" type="class" /> | ||
<entry oldName="class_17$class_18$class_19" newName="class_17$class_18$class19Ns0Rename" type="class" /> | ||
<entry oldName="class_26$class_27$class_28" newName="class_26$class_27$class28Ns0Rename" type="class" /> | ||
<entry oldName="class_2" newName="class2Ns0Rename" type="class"/> | ||
<entry oldName="class_5" newName="class5Ns0Rename" type="class"/> | ||
<entry oldName="class_7$class_8" newName="class_7$class8Ns0Rename" type="class"/> | ||
<entry oldName="class_13$class_14" newName="class_13$class14Ns0Rename" type="class"/> | ||
<entry oldName="class_17$class_18$class_19" newName="class_17$class_18$class19Ns0Rename" type="class"/> | ||
<entry oldName="class_26$class_27$class_28" newName="class_26$class_27$class28Ns0Rename" type="class"/> | ||
<name value="Unnamed migration map"/> | ||
<order value="0"/> | ||
</migrationMap> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<migrationMap> | ||
<entry oldName="class_1" newName="class1Ns0Rename" type="class" /> | ||
<entry oldName="class_1$class_2" newName="class1Ns0Rename$class2Ns0Rename" type="class" /> | ||
<entry oldName="class_3" newName="class3Ns0Rename" type="class" /> | ||
<name value="valid"/> | ||
<order value="0"/> | ||
<entry oldName="class_1" newName="class1Ns0Rename" type="class"/> | ||
<entry oldName="class_1$class_2" newName="class1Ns0Rename$class2Ns0Rename" type="class"/> | ||
<entry oldName="class_3" newName="class3Ns0Rename" type="class"/> | ||
</migrationMap> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters