Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AF9D2200AE4 for ; Fri, 10 Jun 2016 02:01:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AE2AD160A59; Fri, 10 Jun 2016 00:01:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D0899160A58 for ; Fri, 10 Jun 2016 02:01:21 +0200 (CEST) Received: (qmail 54227 invoked by uid 500); 10 Jun 2016 00:01:21 -0000 Mailing-List: contact dev-help@zest.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zest.apache.org Delivered-To: mailing list dev@zest.apache.org Received: (qmail 54204 invoked by uid 99); 10 Jun 2016 00:01:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jun 2016 00:01:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 564571A0665 for ; Fri, 10 Jun 2016 00:01:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.299 X-Spam-Level: * X-Spam-Status: No, score=1.299 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 76M9lFgE4u_e for ; Fri, 10 Jun 2016 00:01:18 +0000 (UTC) Received: from mail-oi0-f47.google.com (mail-oi0-f47.google.com [209.85.218.47]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 3A9BE5F19B for ; Fri, 10 Jun 2016 00:01:18 +0000 (UTC) Received: by mail-oi0-f47.google.com with SMTP id w5so9809057oib.2 for ; Thu, 09 Jun 2016 17:01:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=JSpdfDMm2Oc8BmBjCffHh8Fr7MGDmuUot7fRsn+AKZs=; b=H+iw8Zfc3ryWbQfklsN54gcTAz2w8RWPs0TFT4PzbAlEcMKckcVRiJBdGui3fnYse4 bB2XliFnjxjjzW2TrpkLoTJHfXwqMlHtegwKhtufjKd038zsiOwj4ElzHF9G3zsUwjSn JyroQ8FpJhoNqszK8G04sFSejSwPAuJEi6OQ/jizIu4BOLK8VEMuTIpHRpq1L0nO43dT S9NNXJb777ufYiDEJg+uJaX5bQKFk/xSpUTcFlm8bYhQevd8SwYDvMhSqm0BSJHIV8NV c2iYGjTBFGQZ6tLKjbiH6Nrv8Yqz5U6o6u0y9gLq36p3y/w+BpK8JbpR71921ze8/rZV 4FFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=JSpdfDMm2Oc8BmBjCffHh8Fr7MGDmuUot7fRsn+AKZs=; b=P1GBKoc8SyvKewx3bsYG6lfaFaZdXxD2ICSSLEMAsNCjymT0r3+uh+MUZfXzkCDxHM 6tlKZKps2ByqayW6lVTi6eYu1Igc0BlEZyRRYCGlKOMloZLAWxDN7CcjY9Q0jm3fPDVV DE/xmnspD7tAs7Toi66Ulgk3dx0+51+kt1OhRUbISRig01soruQq1tA1Piv5RBNqVuzj dAYJvrtgYPXtB3busBa5RDCyIGSU+ylGxllc/ksGPYW2NrQ4gnyZLWPXTkbvfvj2ipxA 5uuOUiUvvhlB56jLSvtWK5Npk0Db0dYJSt3lhUVR9/eCyAL1I5yGtlY3WgxiJkn2xXaH UzgA== X-Gm-Message-State: ALyK8tJSKCrnzK7CPmLVYhzAS5TeYI0myRGUm1MqWGJp+bdstW1QpToDJQQG7IZuGOQQ9q/jGMXK8e4TPF7Gdg== X-Received: by 10.202.75.151 with SMTP id y145mr6439092oia.58.1465516874503; Thu, 09 Jun 2016 17:01:14 -0700 (PDT) MIME-Version: 1.0 Sender: hedhman@gmail.com Received: by 10.202.177.135 with HTTP; Thu, 9 Jun 2016 17:00:55 -0700 (PDT) In-Reply-To: References: From: Niclas Hedhman Date: Fri, 10 Jun 2016 08:00:55 +0800 X-Google-Sender-Auth: Uk-HHSyLrKKIyLoVRC8z0usudbw Message-ID: Subject: Re: Shell tool To: dev Content-Type: multipart/alternative; boundary=001a1134e0c2b79e060534e13c0f archived-at: Fri, 10 Jun 2016 00:01:22 -0000 --001a1134e0c2b79e060534e13c0f Content-Type: text/plain; charset=UTF-8 https://zest.apache.org/java/develop/tools-shell.html On Fri, Jun 10, 2016 at 6:55 AM, Niclas Hedhman wrote: > Gang, > > As mentioned, I have been working on > https://issues.apache.org/jira/browse/ZEST-143 since this should help > people to get going with Zest. > > It is similar to Maven archetypes, or IDEs "Create Project" (or > equivalent) commands. > > It is still pretty much work in-progress, but I want to give a heads-up > that there is progress. > > Core app; > Most basic features are implemented and it should be able to create a > project from scratch and use a template to create the skeletal starting > point. > > Templates in the works; > > null = Empty template that only contains a build system and directory > structure. > > singleton = Creates the build system, directory structure and a minimal > Zest application, one layer, one module and the bootstrap code. Possibly > should have a model and possibly some basic functionality. > > default = Creates the build system, directory structure and a 4 layered > standard application, Config, Infra, Domain and Connectivity layers, and > creates modules in those and populates them with a working "Order" model. > > rest = Same as 'default' but also adds the "restlet" library and wires up > the CRUD interface to the model. > > ng-heroes = https://github.com/lcrespom/ng-heroes is a similar thing for > AngularJS. I am thinking that this template should provide a AngularJS > variant into the "Order" model in the "rest" template, and you have > everything needed for complete web app development. > > > The subsystem is NOT a Zest application to simplify its use. I want it to > be possible to bootstrap Zest development without downloading Zest SDK and > keep things really simple. So, every dependency will make that a little bit > harder, and Zest is a lot of those. I have therefore also kept templating > engines, logback, args4j and similar out of the loop. > > As I mentioned, this is not in any way completed (or even working at all), > and assistance would be greatly appreciated. > > Niclas > > On Thu, Apr 21, 2016 at 5:09 PM, Niclas Hedhman > wrote: > >> Hi, >> >> I have mentioned before that I have been working on a Shell tool. Finally >> got some time to push it quite a lot down the line. >> >> So far, only one command implemented; >> >> zest create-project template name rootpackage >> >> It will create a buildable project with name "name" in the directory >> "name", and source code is placed under the "rootpackage" package. The >> bootstrap code, build system and such is always created, and depending on >> the template, additional things is added; >> null - as small as it gets. >> singleton - single layer, single module >> default - 4 layers with all the basic infrastructure set up, includes >> minimal domain model. >> restapp - Restlet library based application, all basics, plus a >> mounted RestAPI with CRUD operations. >> >> Not totally ready yet. Need to trim more on the templates, but it works >> in principle. >> >> BUT, I have an issue and want some help... >> >> I have filtering enabled on the copying of Zest sources into the Zest >> SDK. So, I need to ensure that binary files are not mangled with. >> >> def extraDistTextImage = copySpec { >> releaseApprovedProjects.collect { p -> >> from "$p.projectDir/src/dist/" >> exclude "**/*.jar" >> exclude "**/*.jar_" >> eachFile { >> filter(ReplaceTokens, tokens: [version: version]) >> } >> } >> into( "." ) >> } >> >> def extraDistBinImage = copySpec { >> releaseApprovedProjects.collect { p -> >> from "$p.projectDir/src/dist/" >> include "**/*.jar" >> include "**/*.jar_" >> } >> into( "." ) >> } >> >> But this will place two entries into the ZIP file for the *.jar_ files, >> and one of them being correct. Why doesn't exclude work?? >> >> >> Cheers >> -- >> Niclas Hedhman, Software Developer >> http://zest.apache.org - New Energy for Java >> > > > > -- > Niclas Hedhman, Software Developer > http://zest.apache.org - New Energy for Java > -- Niclas Hedhman, Software Developer http://zest.apache.org - New Energy for Java --001a1134e0c2b79e060534e13c0f--