7 Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
10 Taejun Ha <taejun.ha@samsung.com>
11 Jiil Hyoun <jiil.hyoun@samsung.com>
12 Donghyuk Yang <donghyuk.yang@samsung.com>
13 DongHee Yang <donghee.yang@samsung.com>
15 Licensed under the Apache License, Version 2.0 (the "License");
16 you may not use this file except in compliance with the License.
17 You may obtain a copy of the License at
19 http://www.apache.org/licenses/LICENSE-2.0
21 Unless required by applicable law or agreed to in writing, software
22 distributed under the License is distributed on an "AS IS" BASIS,
23 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24 See the License for the specific language governing permissions and
25 limitations under the License.
31 $LOAD_PATH.unshift File.dirname(__FILE__)+"/src/common"
32 $LOAD_PATH.unshift File.dirname(__FILE__)+"/src/pkg_server"
33 $LOAD_PATH.unshift File.dirname(__FILE__)+"/src/builder"
35 require "packageServer"
37 require "CleanOptionParser"
40 if not File.exist? "package" then
41 puts "current dirctory \"#{path}\" is not package root directory"
47 #generate server when local package server is not set
50 if not Utils.check_host_OS() then
51 puts "Error: Your host OS is not supported!"
56 builder = Builder.get("default")
58 puts "Default builder does not exist! Creating new builder..."
59 builder = Builder.create("default", "http://172.21.111.132/pkgserver/unstable",nil)
63 if not builder.clean( Utils::WORKING_DIR ) then
66 puts "Clean succeeded!"