diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:36:50 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 15:25:03 +0100 |
commit | 41ac47d732eed8392d60d0f6773e5a279d49b999 (patch) | |
tree | cf19d099db9cfdb8d73aa21c31e7aa1cc86ff860 /plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/BBRecipe.java | |
download | eclipse-poky-juno-master.tar.gz |
Migrated from the internal git server on the dora-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
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.java | 50 |
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 | *******************************************************************************/ | ||
11 | package org.yocto.bc.bitbake; | ||
12 | |||
13 | import java.io.IOException; | ||
14 | |||
15 | import org.eclipse.jface.preference.JFacePreferences; | ||
16 | import org.eclipse.jface.resource.JFaceResources; | ||
17 | import org.eclipse.swt.widgets.Display; | ||
18 | import org.eclipse.ui.console.ConsolePlugin; | ||
19 | import org.eclipse.ui.console.IConsole; | ||
20 | import org.eclipse.ui.console.MessageConsole; | ||
21 | import org.eclipse.ui.console.MessageConsoleStream; | ||
22 | |||
23 | /** | ||
24 | * Represents the bitbake environment of a recipe package. | ||
25 | * @author kgilmer | ||
26 | * | ||
27 | */ | ||
28 | public 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 | } | ||