如何制作Nebeans开发版的Install.sh

时间:2018-02-27 19:07:34

标签: netbeans netbeans-8

我已经获得了Netbeans的源代码并使用Ant构建,因此: -

$mkdir -p /home/<user>/projects/netbeans-main
$cd /home/<user>/projects/netbeans-main
$hg clone http://hg.netbeans.org/main
$cd /home/<user>/projects/netbeans-main/main
$export ANT_OPTS="-Xmx2G"
$ant

这是有效的,我可以在源代码树中运行Netbeans,因此: -

$ant tryme   <- uses a temp enviroment
$./nbbuild/netbeans/bin/netbeans  <- uses my current user environment

但我找不到任何有关如何制作“netbeans-8.2-linux.sh”的信息,就像我下载的那样。 我想在另一个Linux机器上安装这个开发版本。

1 个答案:

答案 0 :(得分:0)

似乎$ ant只是构建No-ZIP 要构建完整的netbeans IDE,需要使用

./nbbuild/NetBeans-dev-20180301-aca67cbee053-full.zip

构建之后,已创建以下内容

$ant -p

可以从

找到所有构建选项
import subprocess
from datetime import date, timedelta
from pyspark.sql import SQLContext


def read_data(customer, table, start_date, end_date):
    def run_cmd(args_list):
        #Run linux commands
        print('Running system command: {0}'.format(' '.join(args_list)))
        proc = subprocess.Popen(args_list, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
        s_output, s_error = proc.communicate()
        s_return = proc.returncode
        return s_return, s_output, s_error

    #Generate a list with the dates to access the parquet files
    d1 = date(int(start_date[0:4]), int(start_date[4:6]), int(start_date[6:8]))
    d2 = date(int(end_date[0:4]), int(end_date[4:6]), int(end_date[6:8]))
    dates = [d1 + timedelta(days=x) for x in range((d2-d1).days + 1)]
    #Loop through the dates and load the parquet files
    files = []
    for i in dates:
        path = '/data/customers/' + customer + '/' + table + '/cdateint=' + str(i).replace('-','')
        (ret, out, err) = run_cmd(['hdfs','dfs','-find',path,'-name','*.parq'])
        files.append(out.split('\n'))
    c=0
    for i in files:
        print(c)
        for j in i:
            print j
            if c == 0:
                if len(j) > 0:
                    df = sqlContext.read.parquet(j)
            else:
                if len(j) > 0:
                    df_temp = sqlContext.read.parquet(j)
                    df = df.union(df_temp)
                    del(df_temp)
            c += 1
    return df

我在google搜索的内容中看到了对此的引用,但没有认识到它是以大写字母N开头的。

仍然不知道&#34; netbeans-8.2-linux.sh&#34;已创建,但我想Zip已经足够了。