Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/debugtools/DDR_Autoblob/testsrc/TestPreProcessedSource.java
6000 views
1
import java.io.File;
2
3
import com.ibm.j9ddr.autoblob.linenumbers.PreProcessedSourceParser;
4
5
/*******************************************************************************
6
* Copyright (c) 2010, 2014 IBM Corp. and others
7
*
8
* This program and the accompanying materials are made available under
9
* the terms of the Eclipse Public License 2.0 which accompanies this
10
* distribution and is available at https://www.eclipse.org/legal/epl-2.0/
11
* or the Apache License, Version 2.0 which accompanies this distribution and
12
* is available at https://www.apache.org/licenses/LICENSE-2.0.
13
*
14
* This Source Code may also be made available under the following
15
* Secondary Licenses when the conditions for such availability set
16
* forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
17
* General Public License, version 2 with the GNU Classpath
18
* Exception [1] and GNU General Public License, version 2 with the
19
* OpenJDK Assembly Exception [2].
20
*
21
* [1] https://www.gnu.org/software/classpath/license.html
22
* [2] http://openjdk.java.net/legal/assembly-exception.html
23
*
24
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
25
*******************************************************************************/
26
27
/**
28
* @author andhall
29
*
30
*/
31
public class TestPreProcessedSource
32
{
33
34
/**
35
* @param args
36
*/
37
public static void main(String[] args) throws Exception
38
{
39
PreProcessedSourceParser p = new PreProcessedSourceParser(new File(args[0]),null);
40
41
42
for (String simpleName : p.getFileMappings().keySet()) {
43
System.err.println("Mapping: " + simpleName + " to " + p.getFileMappings().get(simpleName));
44
}
45
}
46
47
}
48
49