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 BE644200BB9 for ; Mon, 7 Nov 2016 15:41:33 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id BD0D8160AEC; Mon, 7 Nov 2016 14:41:33 +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 B8392160AEB for ; Mon, 7 Nov 2016 15:41:32 +0100 (CET) Received: (qmail 28870 invoked by uid 500); 7 Nov 2016 14:41:26 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 28854 invoked by uid 99); 7 Nov 2016 14:41:26 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Nov 2016 14:41:26 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 1C09E189B43 for ; Mon, 7 Nov 2016 14:41:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.129 X-Spam-Level: **** X-Spam-Status: No, score=4.129 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, KAM_INFOUSMEBIZ=0.75, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id HGqsrYesnt14 for ; Mon, 7 Nov 2016 14:41:21 +0000 (UTC) Received: from mail-yw0-f171.google.com (mail-yw0-f171.google.com [209.85.161.171]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 932EC5F1E5 for ; Mon, 7 Nov 2016 14:41:20 +0000 (UTC) Received: by mail-yw0-f171.google.com with SMTP id i145so42193064ywg.2 for ; Mon, 07 Nov 2016 06:41:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=ND8YdTkBJp6fpf5ycqpXNNX1FP94cpjbvEnbK5gx6uM=; b=o/mlrZW/kh/bUahoG+x8BN7CY57i0PqVrR9Ige9dkmy4aFYK8eVp4n0hZaHjod2hCP LoYixJUAYmFhS4PRc1cxWWWT58htEb9ziYvWnjnJ7Rt5aCdasFBniRbsqlIakQiaEYyD 8ML7WJezF5Ujw/qhdwuob+/w+Xxc51XpE+9WTgKjt01BvRM0dp69Su7cAp3OlIfUgCbX I6URGgqnVc/BeRxfZ632ha36PFG2CTZReQBGFf2pPVdOM6AQBys/QcUuQaYDsbjEi952 NCaYrLzyvz3vL2ISJxlBbQc9mkb0FTDXK7kWXWZa2x/KdyCz80JWlNknh3dorVI4etom GP0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=ND8YdTkBJp6fpf5ycqpXNNX1FP94cpjbvEnbK5gx6uM=; b=mbMimPuTKE/5EBCuKqvCzLL0SaBRTitAOE709BX2QK1KoafjP9MWDNJtBclQ1+C3EN P8E+OwUP1a83+JWJiNLA82YhfOpwtdKLrOJmCoN1mS71GRxla5nNJ5cpHJ/BNiCsrfEw Csubs2QN10OVjOLVOCy2BdQP8y5PtU9mA1Gclqw+smok8gSSFp7vuCAYB4UDSgsVgXMP 5A99pcNY3kOTQ8WQ31RVSfBQUKV07Dxiw6nDq5lfGoaJ2s4a07G2aPbMkVvtLD5Twaw8 gLRF0EzDJz73itvXZg1QtO1nzeMnno5jaixcuAJVKlM9GdBekT8c7QV8SLPuwigjmY0j DpEw== X-Gm-Message-State: ABUngvf2MTZw/gokcqAOAPEVXrN8yAW13SUFIT2hB22Msd6wZKwyY+t+zMQOnL3Pq2kGWeMHA/GH1OZCyVN/5Q== X-Received: by 10.202.212.151 with SMTP id l145mr4229256oig.156.1478529679442; Mon, 07 Nov 2016 06:41:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.220.166 with HTTP; Mon, 7 Nov 2016 06:41:18 -0800 (PST) Received: by 10.182.220.166 with HTTP; Mon, 7 Nov 2016 06:41:18 -0800 (PST) In-Reply-To: <3A3E0D1E-9D5B-449F-BFAF-53BE09F65DB4@c-ware.de> References: <64EF7990-4551-4382-B0F8-75D98E09381B@c-ware.de> <3A3E0D1E-9D5B-449F-BFAF-53BE09F65DB4@c-ware.de> From: Josh Tynjala Date: Mon, 7 Nov 2016 06:41:18 -0800 Message-ID: Subject: =?UTF-8?Q?Re=3A_=5BFlexJS=5D_Stuck_with_Images_v=C3=ADa_CSS?= To: dev@flex.apache.org Content-Type: multipart/alternative; boundary=001a113c9d2c55473a0540b704e8 archived-at: Mon, 07 Nov 2016 14:41:33 -0000 --001a113c9d2c55473a0540b704e8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable A flag that tells the compiler not to delete the contents of the output directory might be useful for other things too. I've sometimes wanted to copy files there and just leave them instead of recopying every time (or having to write a script to recopy). - Josh On Nov 7, 2016 12:12 AM, "Christofer Dutz" wrote: > Hi Alex, > > It could, but only by configuring the resources plugin to run in a phase > after the compiler which is not the default and looks more like a hack to > me. > I would like to keep things default as everything else complicates things > and could confuse users. > > Another option would be to set a flag and disable this functionality so i= f > for example =E2=80=9EmavenBuild=3Dtrue=E2=80=9C in the compiler the clean= and resource-copy > are skipped. > > Chris > > Am 07.11.16, 08:17 schrieb "Alex Harui" : > > Can the resources plugin run after the compiler? > > -Alex > > On 11/6/16, 11:04 PM, "Christofer Dutz" > wrote: > > >Hi Carlos, > > > >I found the cause for the problem. > > > >The thing is that the resources plugin correctly copies stuff to the > >target directory. Unfortunately the first thing the flexjs compiler > does > >is clean the output directory. > >In order to solve this, I would like to have the clean code separate= d > >from the compile code. Ideally we would also separate the copying of > >resources. An option would be to set some sort of =E2=80=9EisAntBuil= d=E2=80=9C flag > and > >to skip these code parts for non ant builds. > >In Maven there is a dedicated clean lifecycle for cleaning up things > and > >a copy-resources phase for copying resources and I would like to > utilize > >these. > > > >I did some minor changes to the poms of your example ... please have= a > >look. I added the resources plugin to the example root pom and remov= ed > >some duplicate dependencies in your MDLExample. Additionally I > re-defined > >the resources directory. > >If you do a =E2=80=9Emvn clean process-resoureces=E2=80=9C (which is= one step before > the > >compile) you can see that the resources are correctly copied. > >Unfortunately the first thing the compiler does, is delete things. > > > >Chris > > > >Am 06.11.16, 21:13 schrieb "carlos.rovira@gmail.com im Auftrag von > Carlos > >Rovira" >carlos.rovira@codeoscopic.com>: > > > > @Alex, thanks for looking into this > > > > @Chris, I tried to copy from commit > >a07e0a2e34c8b749f9cb3009860a9a3e34942621 > > > > > > > > > >${basedir}/target/javascript/ > bin/js-debug >utput-dir> > > > > > > and > > > > > > > > org.apache.maven.plugins > > maven-resources-plugin > > 3.0.1 > > > > ${compiler. > output-dir} > > > > > > > > But after rebuild my MDLExample nothing changed. I miss somethin= g? > > > > Thanks > > > > Carlos > > > > > > > > > > > > 2016-11-06 16:24 GMT+01:00 Christofer Dutz > >: > > > > > Hi Carlos, > > > > > > have a look at my feature branch where I cleaned up the > directory > > > structure of the examples. I also separated the resources and > >configured > > > the maven-resource-plugin to copy the resources. Unfortunately > I am > > > currently not able to build that branch due to some really > strange > > > compilation problem . I only changed the structure oft he > examples, > >so I > > > can=E2=80=99t understand, why Core doesn=E2=80=99t build anymo= re ... will > >investigate this > > > as soon as I find a little time. > > > > > > Chris > > > > > > Am 06.11.16, 13:50 schrieb "carlos.rovira@gmail.com im Auftrag > von > >Carlos > > > Rovira" >carlosrovira@apache.org>: > > > > > > Hi, > > > > > > I'm was expending several hours to get FlexJS MDLExample t= o > get > >images > > > v=C3=ADa > > > CSS with no luck. > > > > > > I think we need to give some love to CSS image management > since > >this is > > > basic. Not always people should use an Image component to > show > >an > > > image. > > > Some times a Container needs a background image and right > now > >FlexJS > > > can't > > > deal with this. > > > > > > I'm interested in fix this myself, but right now I can't > find > >info in > > > the > > > wiki. I was thinking about change SimpleCSSValuesImpl.as, > but > >when I > > > try > > > this, I should get an BUILD FAILURE when building with > >maven...maybe > > > there's some connection of this code with some falcon CSS > >internals > > > management?. I need to know some explanation about this. > > > > > > I check as well Flex Store JQuery HomeView since there is = a > >container > > > with > > > a bg img, but this is done with an Image componente and > lots of > > > cumbersome > > > code that are not recommended at all. Things here should b= e > far > >more > > > easy, > > > just setting the image v=C3=ADa CSS and let the html do it= s duty. > > > > > > I see two main problems: > > > > > > 1.- FlexJS remove the CSS rule when is something like -> > >background: > > > url('../../../../src/main/resources/Unknown.jpeg') center = / > >cover; > > > I need FlexJS to output that rule, both in inline style > >properties and > > > inside css files > > > 2.- Second is the problem with paths, that if not directly > >related is > > > responsible to get things done right. As I talked with > Chris, he > > > proposed > > > to make the build manage additional resource paths. I coul= d > in > >the mean > > > time put an "assets" folder where resides my App.mxml and > store > >inside > > > images, and then move it to src/main/resources when things > >settles in > > > the > > > right way. > > > > > > If we get this done and get divs, spans, and others to sho= w > >images, we > > > can > > > gain many things in terms of look and feel of Flex Apps. F= or > >example I > > > would like to implement with FlexJS this example page: > > > https://getmdl.io/templates/blog/index.html > > > I need this image css support to get this. > > > > > > Thanks! > > > > > > -- > > > Carlos Rovira > > > http://about.me/carlosrovira > > > > > > > > > > > > > > > -- > > > > Carlos Rovira > > Director General > > M: +34 607 22 60 05 > > http://www.codeoscopic.com > > http://www.avant2.es > > > > > > Este mensaje se dirige exclusivamente a su destinatario y puede > >contener > > informaci=C3=B3n privilegiada o confidencial. Si ha recibido est= e > mensaje > >por > > error, le rogamos que nos lo comunique inmediatamente por esta > misma > >v=C3=ADa y > > proceda a su destrucci=C3=B3n. > > > > De la vigente Ley Org=C3=A1nica de Protecci=C3=B3n de Datos (15/= 1999), le > >comunicamos > > que sus datos forman parte de un fichero cuyo responsable es > >CODEOSCOPIC > > S.A. La finalidad de dicho tratamiento es facilitar la prestaci= =C3=B3n > del > > servicio o informaci=C3=B3n solicitados, teniendo usted derecho = de > acceso, > > rectificaci=C3=B3n, cancelaci=C3=B3n y oposici=C3=B3n de sus dat= os dirigi=C3=A9ndose a > >nuestras > > oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la > >documentaci=C3=B3n > > necesaria. > > > > > > > > --001a113c9d2c55473a0540b704e8--