summaryrefslogtreecommitdiffstats
path: root/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/BBRecipe.java
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/BBRecipe.java')
-rw-r--r--plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/BBRecipe.java50
1 files changed, 50 insertions, 0 deletions
diff --git a/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/BBRecipe.java b/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/BBRecipe.java
new file mode 100644
index 0000000..2b355ba
--- /dev/null
+++ b/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/BBRecipe.java
@@ -0,0 +1,50 @@
1/*****************************************************************************
2 * Copyright (c) 2009 Ken Gilmer
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * Ken Gilmer - initial API and implementation
10 *******************************************************************************/
11package org.yocto.bc.bitbake;
12
13import java.io.IOException;
14
15import org.eclipse.jface.preference.JFacePreferences;
16import org.eclipse.jface.resource.JFaceResources;
17import org.eclipse.swt.widgets.Display;
18import org.eclipse.ui.console.ConsolePlugin;
19import org.eclipse.ui.console.IConsole;
20import org.eclipse.ui.console.MessageConsole;
21import org.eclipse.ui.console.MessageConsoleStream;
22
23/**
24 * Represents the bitbake environment of a recipe package.
25 * @author kgilmer
26 *
27 */
28public class BBRecipe extends BBSession {
29 private final BBSession session;
30 private final String filePath;
31
32 public BBRecipe(BBSession session, String filePath) throws IOException {
33 super(session.shell, session.pinfo.getRootPath());
34 this.session = session;
35 this.filePath = filePath;
36 this.parsingCmd = "DISABLE_SANITY_CHECKS=1 bitbake -e -b " + filePath;
37 }
38
39 @Override
40 public void initialize() throws Exception {
41 if (this.size() == 0) {
42 //System.out.println("Failed to parse " + filePath);
43 //throw new IOException("Failed to parse " + filePath);
44 }
45 }
46
47 protected String getDefaultDepends() {
48 return this.filePath;
49 }
50}