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 70C9B200C7E for ; Tue, 23 May 2017 09:23:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6F3AA160BD3; Tue, 23 May 2017 07:23:11 +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 B2E60160BB6 for ; Tue, 23 May 2017 09:23:10 +0200 (CEST) Received: (qmail 55781 invoked by uid 500); 23 May 2017 07:23:09 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 55771 invoked by uid 99); 23 May 2017 07:23:09 -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; Tue, 23 May 2017 07:23:09 +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 1BA371A03DB for ; Tue, 23 May 2017 07:23:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id oNbfYAQSV0co for ; Tue, 23 May 2017 07:23:08 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 646035FE2F for ; Tue, 23 May 2017 07:23:06 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7CDE9E005B for ; Tue, 23 May 2017 07:23:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4723021B5B for ; Tue, 23 May 2017 07:23:04 +0000 (UTC) Date: Tue, 23 May 2017 07:23:04 +0000 (UTC) From: "Uwe Schindler (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SOLR-10728) fix/improve rat-sources and check-forbidden-api in solr-ref-guide MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 23 May 2017 07:23:11 -0000 [ https://issues.apache.org/jira/browse/SOLR-10728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16020752#comment-16020752 ] Uwe Schindler commented on SOLR-10728: -------------------------------------- Hi Hoss, Sorry I was a bit unclear yesterday. It was late! In general, if you look at other modules in Lucene/Solr, you will see that they have a layout, that formed like Maven builds (not completely, because we do not have src/main/ up to now). You have a sub directory below src, "main (or java, we need to change this to main/java at some point), test, tools". I suggest to use the same layout for the ref guide: src/docs (or src/main) and src/tools/java. When you have main, test and tools you have 3 types of source files. As example see the analysis/common package. It actually has a main java folder, the tests and then a tools folder below src. The test folder is additionally split between java and groovy, because we have both types of tools. I can look into this! Indeed, we can keep the current layout, because the properties explained above can be customized! So see this as a suggestion to make it more consistent, especially with Maven/Gradle world. If we change at some point away from Ant, we would make life easier. > fix/improve rat-sources and check-forbidden-api in solr-ref-guide > ----------------------------------------------------------------- > > Key: SOLR-10728 > URL: https://issues.apache.org/jira/browse/SOLR-10728 > Project: Solr > Issue Type: Sub-task > Security Level: Public(Default Security Level. Issues are Public) > Components: documentation > Reporter: Hoss Man > Assignee: Uwe Schindler > > via email from uwe... > {noformat} > We have already a check for licenses by default enabled in all sub directories of the build. It's called "rat-sources" > The problem with the rat-sources ant target is, that although it runs on the ref-guide subdirectory, it does not catch > violations for several reasons: > 1. it does not yet look into all file types > 2. for some files, e.g. the java code, you are using a non-standard subdirectory of the project folder. To fix this, there are > two options: a) move to src/.../java or tools like in other modules (by that they are also compiled automatically without extra > compilation tasks in build.xml) or b) add the additional directories to some special ANT property _before_ loading > common-build.xml: > > > > In the local build, you can configure the license checker by adding those lines fillesd out *before* including > common-build.xml. If you open an issue, I can maybe take care of that this week (I am a bit busy). I'd also like to clean up > the build directory, because it has some code duplication automatically handled by common-build.xml. In addition other checks > are missing, too - because the non-standard folder names (e.g. forbidden-apis). > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org