From: Jose Lamego <jose.a.lamego@linux.intel.com>
To: yocto@yoctoproject.org
Subject: Re: [eclipse-poky][PATCH] OptionsPage.java: Allow BC Project name to be other than poky folder
Date: Thu, 17 Dec 2015 10:32:03 -0600 [thread overview]
Message-ID: <5672E383.6060200@linux.intel.com> (raw)
In-Reply-To: <1448920469-15479-1-git-send-email-jose.a.lamego@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 2051 bytes --]
Ping
On 11/30/2015 03:54 PM, Jose Lamego wrote:
> Fixes [Yocto 8407]
>
> This change allows a new Yocto Project Bitbake Commander project
> to be named as desired, not as the poky folder.
>
> Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
> ---
> .../src/org/yocto/bc/ui/wizards/install/OptionsPage.java | 12 ++++--------
> 1 file changed, 4 insertions(+), 8 deletions(-)
>
> diff --git a/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/install/OptionsPage.java b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/install/OptionsPage.java
> index bd91ef9..582d301 100644
> --- a/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/install/OptionsPage.java
> +++ b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/install/OptionsPage.java
> @@ -130,7 +130,7 @@ public class OptionsPage extends FiniteStateWizardPage {
> @Override
>
> protected void updateModel() {
> - model.put(InstallWizard.INSTALL_DIRECTORY, txtProjectLocation.getText()+File.separator+txtProjectName.getText());
> + model.put(InstallWizard.INSTALL_DIRECTORY, txtProjectLocation.getText());
> model.put(InstallWizard.PROJECT_NAME, txtProjectName.getText());
> }
>
> @@ -166,13 +166,9 @@ public class OptionsPage extends FiniteStateWizardPage {
> return false;
> }
>
> - String projectPath = projectLoc + txtProjectName.getText();
> - File prj_dir=new File(projectPath);
> - if(!prj_dir.isDirectory() || !prj_dir.exists()) {
> - if(!new File(projectPath + File.separator + InstallWizard.VALIDATION_FILE).exists()) {
> - setErrorMessage("Directory " + txtProjectLocation.getText() + txtProjectName.getText() + " is an invalid poky directory.");
> - return false;
> - }
> + if(!new File(projectLoc + File.separator + InstallWizard.VALIDATION_FILE).exists()) {
> + setErrorMessage("Directory " + txtProjectLocation.getText() + " is an invalid poky directory.");
> + return false;
> }
>
> try {
>
--
Jose Lamego | OTC Embedded Platforms & Tools | GDC
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 484 bytes --]
prev parent reply other threads:[~2015-12-17 16:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-30 21:54 [eclipse-poky][PATCH] OptionsPage.java: Allow BC Project name to be other than poky folder Jose Lamego
2015-12-17 16:32 ` Jose Lamego [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5672E383.6060200@linux.intel.com \
--to=jose.a.lamego@linux.intel.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.