Return-Path: X-Original-To: apmail-manifoldcf-dev-archive@www.apache.org Delivered-To: apmail-manifoldcf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1CFC7176AD for ; Fri, 26 Sep 2014 04:51:45 +0000 (UTC) Received: (qmail 16064 invoked by uid 500); 26 Sep 2014 04:51:45 -0000 Delivered-To: apmail-manifoldcf-dev-archive@manifoldcf.apache.org Received: (qmail 16022 invoked by uid 500); 26 Sep 2014 04:51:45 -0000 Mailing-List: contact dev-help@manifoldcf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@manifoldcf.apache.org Delivered-To: mailing list dev@manifoldcf.apache.org Received: (qmail 16002 invoked by uid 99); 26 Sep 2014 04:51:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Sep 2014 04:51:44 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shinichiro.abe.1@gmail.com designates 209.85.192.180 as permitted sender) Received: from [209.85.192.180] (HELO mail-pd0-f180.google.com) (209.85.192.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Sep 2014 04:51:17 +0000 Received: by mail-pd0-f180.google.com with SMTP id r10so11970592pdi.11 for ; Thu, 25 Sep 2014 21:51:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=sq0YNa4VHk6MUrKd+msFx+DbLh4/UvXUstb5Kdmp77s=; b=xMR9U5u6kc9CL8pMmsl363hDICdpQ0nCZvi39RjpACx1WU9RhtIm1c4bpZIfztXQNP sDe31Sg6/UHHTWaZPyA2tdFIiWE9CFdZHBNWEJl6z5wFtulfrp3BXELJJ863dDTwVvPR CuH+3ZzTi2qBbIPbQNwKvXxD1cSLK8eVM1jqKsC+prRjdwWPKtp63f/IOI9fekhPktqI iZ3UXQb8yI3Yr5RYTQwzIOVg7tEwwXDl40aAX50ZqVK8WEt/kdGY0oPQBX3iPTKEBV4z T+0uABVb70Fx1B08xDXZk2xctelflYEw8uqiwXYnTZ+RY3qm+iT18xREdSNLHrMP7/E2 IvMw== X-Received: by 10.66.65.130 with SMTP id x2mr25961669pas.79.1411707075395; Thu, 25 Sep 2014 21:51:15 -0700 (PDT) Received: from [192.168.1.9] (y073164.dynamic.ppp.asahi-net.or.jp. [118.243.73.164]) by mx.google.com with ESMTPSA id ow7sm3642139pbc.30.2014.09.25.21.51.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 25 Sep 2014 21:51:14 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: MCF 2.x binary package directory structure From: Shinichiro Abe In-Reply-To: Date: Fri, 26 Sep 2014 13:51:14 +0900 Cc: "dev@manifoldcf.apache.org" Content-Transfer-Encoding: quoted-printable Message-Id: <08D1485A-151D-43D7-A0DE-38F5516A3DD2@gmail.com> References: To: dev@manifoldcf.apache.org X-Mailer: Apple Mail (2.1508) X-Virus-Checked: Checked by ClamAV on apache.org Hi Karl, Thanks for the reply. > (1) I don't understand what you mean by, "because build.xml in = framework is > currently too long to include class > paths in lib". Can you clarify? Rerated to (5) , manifest-cp configuration is not cool at all.=20 = https://svn.apache.org/viewvc/manifoldcf/trunk/framework/build.xml?view=3D= markup#l1343 If new jars introduced with new feature, manifest-cp-proprietary must be = tweaked, too. (i18n properties files also bother us.) Alternatively, the ant task below is useful. common-build.xml: Add artifact-version to dest. + = framework/build.xml: New manifest-cp property setting works fine. =20 - - + + + + + + + + + > (2) Some of these suggestions seem to be making distinctions between = files > and directories that I don't understand the reason for.=20 1. I came to mind CONNECTORS-345. 2. Currently I have to create scripts in production: startup.sh -- java -jar start.jar echo $! > mcf.pid shutdown.sh -- kill cat(mcf.pid) <-- MCF's embedded Jetty example can't call = agent-shutdown AFAIK but this script isn't cool. =20 3. start.jar command line options are useful. = http://www.eclipse.org/jetty/documentation/current/start-jar.html#d0e8418 4. If we can separate Jetty-lib and mcf-lib, we could deploy Tomcat. Of = course combined.war can do that though. I thought additional jars could copy to another directory, and might = load these using Custom ClassLoader. = http://www.eclipse.org/jetty/documentation/current/jetty-classloading.html= 5. But If users don't want to config jetty.xml(e.g. thread pool, = requestHeaderSize and so on in jetty.xml -- http://wiki.eclipse.org/Jetty/Howto/Configure_Connectors), I will drop these suggestions. > (3) I agree with "connector-specific-processes" and "plugins". But = other > hierarchy additions seem less helpful, such as hiding the examples = under > additional levels of hierarchy. I think it should be possible = immediately > for a user to see what examples are available. But maybe we could = change > the names to be clearer. Yes. Especially I want to change name *-proprietary into something like = *-extra because "proprietary".length() is long. BTW, for a few jars(oracle,mysql,alfresco,jcifs,livelink,jtds and = other), to create *-proprietary directories is awkward, isn't it? I know CONNECTORS-402 intent, but more simplified, can we say that "if = you use these jars,=20 please get source and run ''ant make-deps build"? -- I usually say so, = no problems occur for now. > (4) Rather than group together xxx and xxx-proprietary, and yyy and > yyy-proprietary, it would be more appropriate to have a "proprietary" > directory and an "open" directory", with xxx and yyy under them. Ok.=20 But I want to know, can we deprecate example and move = example-proprietary to example? I'd like to merge these examples. If proprietary jars exists, MCF just = have to load from extra-dir. I assume that we can have extra-lib which is optional, If it exists, MCF = will load any Jars found in this directory and use them to resolve connectors specified in = connectors.xml. (Solr has plugin class loader at $SOLR_HOME/lib) I just simplified directories since other Apache projects look like much = simpler. Regards, Shinichiro Abe. On 2014/09/26, at 3:01, Karl Wright wrote: > Hi Abe-san, >=20 > Some comments: >=20 > (1) I don't understand what you mean by, "because build.xml in = framework is > currently too long to include class > paths in lib". Can you clarify? >=20 > (2) Some of these suggestions seem to be making distinctions between = files > and directories that I don't understand the reason for. For example: = "in > process-single directory we can > create lib dir(for jetty jars), lib/ext dir(for logger jars), resource > dir(for logging.ini) and etc dir(for jetty.xml)." Why separate jars = in > this way? They are all necessary at the root level to run the = example. I > would not understand where to add a new jar with this arrangement = because > the meaning of the directories is unclear. >=20 > (3) I agree with "connector-specific-processes" and "plugins". But = other > hierarchy additions seem less helpful, such as hiding the examples = under > additional levels of hierarchy. I think it should be possible = immediately > for a user to see what examples are available. But maybe we could = change > the names to be clearer. >=20 > (4) Rather than group together xxx and xxx-proprietary, and yyy and > yyy-proprietary, it would be more appropriate to have a "proprietary" > directory and an "open" directory", with xxx and yyy under them. >=20 > (5) Putting version numbers on jars is difficult in some cases, = especially > in construction of start.jar, because the ant methods for constructing > start.jar are poor. The version of each jar would need to be defined > globally in the ant build, and included whenever the jar is = referenced. >=20 > Karl