mirror of
https://github.com/cincheo/jsweet.git
synced 2025-12-15 15:29:22 +00:00
removed logs
This commit is contained in:
parent
7e534c3146
commit
25a877e8e3
@ -238,15 +238,12 @@ public class Java2TypeScriptTranslator extends AbstractTreePrinter {
|
|||||||
// export-import submodules
|
// export-import submodules
|
||||||
File parent = new File(compilationUnit.getSourceFile().getName()).getParentFile();
|
File parent = new File(compilationUnit.getSourceFile().getName()).getParentFile();
|
||||||
File[] sourceFiles = SourceFile.toFiles(context.sourceFiles);
|
File[] sourceFiles = SourceFile.toFiles(context.sourceFiles);
|
||||||
logger.debug("source files: " + Arrays.asList(sourceFiles));
|
|
||||||
for (File file : parent.listFiles()) {
|
for (File file : parent.listFiles()) {
|
||||||
if (file.isDirectory() && !file.getName().startsWith(".")) {
|
if (file.isDirectory() && !file.getName().startsWith(".")) {
|
||||||
logger.debug(topLevel.getSourceFile().getName() + " is checking for export import: " + file);
|
|
||||||
if (Util.containsFile(file, sourceFiles)) {
|
if (Util.containsFile(file, sourceFiles)) {
|
||||||
logger.debug(file + " contains a source file");
|
|
||||||
Set<String> importedNames = context.getImportedNames(compilationUnit.packge);
|
Set<String> importedNames = context.getImportedNames(compilationUnit.packge);
|
||||||
if (!importedNames.contains(file.getName())) {
|
if (!importedNames.contains(file.getName())) {
|
||||||
logger.debug(file + " is imported");
|
logger.debug(topLevel.getSourceFile().getName() + " export import: " + file);
|
||||||
print("export import " + file.getName() + " = require('./" + file.getName() + "/" + JSweetConfig.MODULE_FILE_NAME + "');")
|
print("export import " + file.getName() + " = require('./" + file.getName() + "/" + JSweetConfig.MODULE_FILE_NAME + "');")
|
||||||
.println();
|
.println();
|
||||||
importedNames.add(file.getName());
|
importedNames.add(file.getName());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user