@@ -397,6 +397,8 @@ public String preprocess(File srcFolder,
397397 // grab the imports from the code just preproc'd
398398
399399 importedLibraries = new ArrayList <Library >();
400+ importedLibraries .add (mode .getCoreLibrary ());
401+
400402// System.out.println("extra imports: " + result.extraImports);
401403 for (String item : result .extraImports ) {
402404 // remove things up to the last dot
@@ -696,14 +698,17 @@ public SketchException placeException(String message,
696698 }
697699
698700
701+ /*
699702 protected boolean exportApplet() throws SketchException, IOException {
700703 return exportApplet(new File(sketch.getFolder(), "applet"));
701704 }
705+ */
702706
703707
704708 /**
705709 * Handle export to applet.
706710 */
711+ /*
707712 public boolean exportApplet(File appletFolder) throws SketchException, IOException {
708713 mode.prepareExportFolder(appletFolder);
709714
@@ -767,37 +772,35 @@ public boolean exportApplet(File appletFolder) throws SketchException, IOExcepti
767772// }
768773
769774
770- /*
771- int wide = PApplet.DEFAULT_WIDTH;
772- int high = PApplet.DEFAULT_HEIGHT;
773- String renderer = "";
774-
775- String scrubbed = PdePreprocessor.scrubComments(sketch.getCode(0).getProgram());
776- String[] matches = PApplet.match(scrubbed, PdePreprocessor.SIZE_REGEX);
777-
778- if (matches != null) {
779- try {
780- wide = Integer.parseInt(matches[1]);
781- high = Integer.parseInt(matches[2]);
782-
783- // Adding back the trim() for 0136 to handle Bug #769
784- if (matches.length == 4) renderer = matches[3].trim();
785- // Actually, matches.length should always be 4...
786-
787- } catch (NumberFormatException e) {
788- // found a reference to size, but it didn't
789- // seem to contain numbers
790- final String message =
791- "The size of this applet could not automatically be\n" +
792- "determined from your code. You'll have to edit the\n" +
793- "HTML file to set the size of the applet.\n" +
794- "Use only numeric values (not variables) for the size()\n" +
795- "command. See the size() reference for an explanation.";
796-
797- Base.showWarning("Could not find applet size", message, null);
798- }
799- } // else no size() command found
800- */
775+ // int wide = PApplet.DEFAULT_WIDTH;
776+ // int high = PApplet.DEFAULT_HEIGHT;
777+ // String renderer = "";
778+ //
779+ // String scrubbed = PdePreprocessor.scrubComments(sketch.getCode(0).getProgram());
780+ // String[] matches = PApplet.match(scrubbed, PdePreprocessor.SIZE_REGEX);
781+ //
782+ // if (matches != null) {
783+ // try {
784+ // wide = Integer.parseInt(matches[1]);
785+ // high = Integer.parseInt(matches[2]);
786+ //
787+ // // Adding back the trim() for 0136 to handle Bug #769
788+ // if (matches.length == 4) renderer = matches[3].trim();
789+ // // Actually, matches.length should always be 4...
790+ //
791+ // } catch (NumberFormatException e) {
792+ // // found a reference to size, but it didn't
793+ // // seem to contain numbers
794+ // final String message =
795+ // "The size of this applet could not automatically be\n" +
796+ // "determined from your code. You'll have to edit the\n" +
797+ // "HTML file to set the size of the applet.\n" +
798+ // "Use only numeric values (not variables) for the size()\n" +
799+ // "command. See the size() reference for an explanation.";
800+ //
801+ // Base.showWarning("Could not find applet size", message, null);
802+ // }
803+ // } // else no size() command found
801804
802805 // Grab the Javadoc-style description from the main code.
803806 String description = "";
@@ -1030,6 +1033,7 @@ public boolean accept(File dir, String name) {
10301033
10311034 return true;
10321035 }
1036+ */
10331037
10341038
10351039 /**
@@ -1257,13 +1261,13 @@ private boolean exportApplication(File destFolder,
12571261 jarListVector .add (sketch .getName () + ".jar" );
12581262
12591263
1260- /// add core.jar to the jar destination folder
1261-
1262- File bagelJar = Base .isMacOS () ?
1263- Base .getContentFile ("core.jar" ) :
1264- Base .getContentFile ("lib/core.jar" );
1265- Base .copyFile (bagelJar , new File (jarFolder , "core.jar" ));
1266- jarListVector .add ("core.jar" );
1264+ // /// add core.jar to the jar destination folder
1265+ //
1266+ // File bagelJar = Base.isMacOS() ?
1267+ // Base.getContentFile("core.jar") :
1268+ // Base.getContentFile("lib/core.jar");
1269+ // Base.copyFile(bagelJar, new File(jarFolder, "core.jar"));
1270+ // jarListVector.add("core.jar");
12671271
12681272
12691273 /// add contents of 'library' folders to the export
0 commit comments