Languages

Menu
Sites
Language
The 'build-web' command is not executed.
 
I have run 'tizen build-web' command to build SSSP 4 version TV App, but I get the following error.
 
 
 
-----------------------------------------------------
Starting build-web
-----------------------------------------------------
 
Error occured during build!
java.lang.Exception: The specified directory(/Users/myUserName/myProject) is not vaild
-----------------------------------------------------
Finished build-web
 
 
 
 
There is no problem with other projects.
The problem appears only in certain projects.
I have no problem with the path, but I want to know why the not valid error appears and what the solution is.
 
 
OS : MacOS 10.14.1 Mojave
 
Edited by: Conan Kim on 12 Dec, 2018
View Selected Answer

Responses

4 Replies
Armaan-Ul- Islam

Please Share the 'Create Tizen Project' & 'Build Tizen Project' CLI Commands you are using...

Also Try Creating Project on a different directory.

Conan Kim

I have already tried different directory.

The problem occurred after I moved the git repository.

There was no command difference between the existing repository and the newly registered repository.

But a project clone in the new git repository has a message saying that 'the specified directory is not valid' on the 'build-web' command.

Conan Kim

#!/bin/bash

tizen_sdk_home=$TIZEN_SDK_HOME

echo $tizen_sdk_home

if [ -z $tizen_sdk_home ]
then
    tizen_sdk_home=~/tizen-sdk
fi

echo $tizen_sdk_home

$tizen_sdk_home/tools/ide/bin/tizen build-web -e '*node_modules*' '.git*' '.idea*' 'webpack*' 'coverage*' 'package.json' 'spec*' '.babelrc' 'js*' '*.sh' 'README.txt' 'devConfig*' 'test-results.xml' 'version.sh' 'pom_RC.xml' '*nm-player*'

 

This is the entire script code.

However, if I simply run the "tizen build-web" command, I get the same error.

Mark as answer
Armaan-Ul- Islam

Hello Conan Kim,

Please make sure you are maintaining the Tizen Web Project desired Directory Structure...

There should be a config.xml file in the directory pointing a content src => HTML file.

The HTML file would include other HTML, JS, CSS files as general procedure goes.

Example Directory Structure:

 

 

Example Command for Such Structure:

tizen build-web -- DeleteME2 -e ...