Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8473263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:18:06+00:00 2026-06-10T17:18:06+00:00

I have folder structure like this: js_uncompressed > lib > libraries which all js

  • 0

I have folder structure like this:

js_uncompressed
  > lib
    > libraries which all js files should include.
  > common
    > files which some js files should include
  > folder1
    > screenA.js
    > screenB.js
  > folder2
    > screenC.js

and I want to build on javascript files for each screen[-something].js.

for example,

screenA.js should include files in “lib” folder, fileA.js in “common” folder.

screenB.js should include files in “lib” folder, fileB.js in “common” folder.

screenC.js should include files in “lib” folde, fileA.js and fileB.js in “common” folder.

is this possible without some complicated shell script?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:18:08+00:00Added an answer on June 10, 2026 at 5:18 pm

    If you can use Ant you can build this easily using Google Closure Compiler. This is just an example that you can start.

    <?xml version="1.0" encoding="UTF-8"?>
    <project name="Foo" default="default" basedir=".">
        <description>Bar.</description>
    
        <target name="-pre-dist">
    
            <property name="closureCompiler" value="${build.classes.dir}/../lib/compiler.jar"/>
            <property name="jsRootFolder" value="${build.web.dir}/javascript"/>
            <property name="compiledJsFolder" value="${build.web.dir}/javascript"/>
            <property name="compiledJsFileApp" value="${compiledJsFolder}/application.min.js"/>
    
            <echo>Bulding JavaScript...</echo>
    
            <java jar="${closureCompiler}"
                    args="--compilation_level SIMPLE_OPTIMIZATIONS
                    --js ${jsRootFolder}/screenA.js
                    --js ${jsRootFolder}/screenB.js
                    --js ${jsRootFolder}/screenC.js
                    --js ${jsRootFolder}/screenN.js
                    --js_output_file ${compiledJsFileApp}"/>
    
            <echo>Done!</echo>
    
        </target>
    
    </project>
    

    I took this code snipet from a project that I maintain. It was created in NetBeans, but you can modify it easily to fit your needs. Values like ${build.classes.dir} are specific of NetBeans build file. This build file creta some references (closure compiler jar, folders, etc.) and executes the “compilation” calling the compiler through java task.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a files structure like this: Class (folder): - User.php - Rule.php Scripts
I have a folder structure like this (which is a small snippet): └── test
I have a folder structure like this: /some_folder /tmp /tmp/foo /tmp/foo/fu * /tmp/bar /tmp/bar/bah
I have a folder structure like this: /articles .index.php .second.php .third.php .fourth.php If I'm
If I have a folder structure that looks like this: / /bin/myComponent.cfc /reports/index.cfm How
I have a folder structure like this: package_name/ |-- module1 |-- module2 |-- module3
I have a folder structure like this. [ site ] [ js ] [
I have a folder structure like this below: D:\myphotos\2011-02-09\1.jpg D:\myphotos\2011-02-10\2.jpg .... ...... ............ D:\myphotos\2011-02-23\10.jpg
I have a folder structure like this lots of folders another subfolder _includes getStatisticsTable.php
I have a folder structure like this /img/products/{product name}/ and then the sub folders

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.