Commit 36f10bc3 authored by Florian Hölzl's avatar Florian Hölzl
Browse files

YELLOW.

refs 3241
parent e68979be
BeagleBoneExecutionUnitExecutable.java a8dddaa2a9e97bfb5d76a3b9da4895878b091e4c GREEN
BeagleBoneTransmissionUnitExecutable.java 89c0f9855fab0323bb338c7116080190e75b75e7 GREEN
ConsoleOutputTransmitterExecutable.java bf0991605d654dd435b7872d2771f7c5dba54584 GREEN
GeneratorConstants.java cfcc1768ae8879e8b8d3f85b7994964b6bad4c3a RED
GeneratorConstants.java 7d74e838ae674295e4bd23c586da9e04c386d895 YELLOW
GeneratorHelperUtils.java 467b23e8610f08b358b496183cda438ee4a46883 GREEN
SerialInputReceiverExecutable.java a91554861326db7231238ad4af3e846c856bc857 GREEN
SerialOutputTransmitterExecutable.java b94055ead7f51be871e76c92cc68e508d6bd45b1 GREEN
......
......@@ -15,12 +15,8 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.beagle.generator.executable;
import static org.fortiss.af3.generator.common.utils.SourceModelElementFactory.createByteContentUnitForPluginFile;
import static org.fortiss.af3.generator.common.utils.SourceModelElementFactory.createByteContentUnitForPluginFileInRCP;
import static org.fortiss.af3.generator.common.utils.SourceModelElementFactory.createSourcePackage;
import static org.fortiss.tooling.kernel.utils.LoggingUtils.error;
import java.io.IOException;
import java.net.URISyntaxException;
import org.fortiss.af3.generator.common.model.java.JavaSourcePackage;
import org.fortiss.af3.generator.common.model.source.ByteContentUnit;
......@@ -77,20 +73,12 @@ final class GeneratorConstants {
/** Copies the beagle HAL library to the target package. */
public static void copyLibraryFromPlugin(JavaSourcePackage pack) {
try {
ByteContentUnit bcu =
createByteContentUnitForPluginFile(AF3PlatformBeagleActivator.PLUGIN_ID, "lib",
BEAGLE_HAL_LIB, false);
SourcePackage libPack = createSourcePackage("lib");
pack.getSubPackages().add(libPack);
libPack.addUnit(bcu);
} catch(IOException e) {
error(AF3PlatformBeagleActivator.getDefault(), "Failed to copy beagle HAL library.");
e.printStackTrace();
} catch(URISyntaxException e) {
error(AF3PlatformBeagleActivator.getDefault(), "Failed to copy beagle HAL library.");
e.printStackTrace();
}
ByteContentUnit bcu =
createByteContentUnitForPluginFileInRCP(AF3PlatformBeagleActivator.PLUGIN_ID,
"lib", BEAGLE_HAL_LIB, false);
SourcePackage libPack = createSourcePackage("lib");
pack.getSubPackages().add(libPack);
libPack.addUnit(bcu);
}
/** Returns the encoder method name. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment