why android L has /system/app/apkname/apkname.apk folder structure - android-5.0-lollipop

I was checking sytem/aap folder structure in Android L and realized that it has a new folder structure. It has introduced a new folder with apt name between app and apt. So new folder is like /system/app/test/test.apk
I was wondering what is advantage of this new folder structure?

For convenience I presume. The folder "apkname" may contain more than just the APK file (like .so files in lib folder)

Related

Distribution of Executable jar file in netbeans

I have created a database desktop application using netbeans. Netbeans creates a jar file in the project folder. When I run it, it works fine.
The problem is when I take that jar file outside the project folder and then try to run it, it shows an exception of org.sqlite.jdbc. This exception keeps on striking until I close the process using Windows task manager but it is not running.
In dist folder, you will find three things :
the .jar file of your project
a lib folder
Readme.txt
Make sure that when you take your .jar file outside the project folder, take the lib folder as well.
The lib folder contains all the libraries and jar files you've used in your project and are essential to make the jar file run.
Hope it helps!! :)
Thanks. I have found a solution here http://arunasujith.blogspot.in/2011/08/how-to-build-fat-jar-using-netbeans.html?m=1.

Publish output project path in ASP.NET5

After publish my ASP.NET5 project I get "output" folder consists of "approot", "logs", "wwwroot" folders. Inside approot/src folder there are folders with dll's of my projects, dependent projects etc. All these dlls I need to copy to my wwwroot folder. The issue is, how to get the information about the current path to my output folder during the publish. I need that information to construct glump task to copy my files to proper destination.

Can't add the Mobile Apps Tracking bindings to my project

I'm trying to use the MAT bindings in my project however it seems that the .jar file is not included on: http://libgdx.badlogicgames.com/robovm-ios-bindings/
I have also tried adding it to my project by downloading the repository from: https://github.com/BlueRiverInteractive/robovm-ios-bindings/tree/master/mobileapptracking and adding the project to my Robovm build path but it's not working as well.
Any idea how to solve this ?
Thanks,
ASM
I have made a bindings project into a jar file doing the following. I am sure there is an easier way to get the framework in the correct folder, but I have not yet found it.
load bindings project in eclipse
export the source folder (you should get org/robovm/bindings/mobileapptracking/) to .jar file
open the jar file with winrar or similar program
add folder: robovm/ios/libs/ in META-INF folder
add the .framework(s) to this folder
now you should have a similar .jar file as on the libgdx site!

SSIS zip a file using 7zip

I am using ssis to zip and rename a folder with about 7 files in it. when it zips the folder and renames it the old folder is inside of the zip folder i would just like to have the zip folder with the new name and the files inside of that.
i have tried
a -tzip "F:\Extracts\QCExtracts\QCreports_2014_07.zip" "F:\Extracts\QCExtracts\QCreports\"
a -tzip "F:\Extracts\QCExtracts\QCreports_2014_07.zip" "F:\Extracts\QCExtracts\QCreports"
for both i get the result of QCreports_2014_07.zip\ QCreports\all files
i need it to be QCreports_2014_07.zip\ all files
Assuming you use "Execute Process Task" for the 7z.exe call:
You have to set F:\Extracts\QCExtracts\QCreports\as WorkingDirectory in the Process section of your Task. This should omit the subdirectory in the zip file.

Deploying just HTML, CSS webpage to Tomcat

I am just getting started on developing a website. All I have at the moment is a HTML page supported by a couple of CSS stylesheets.
Can I create a WAR file from the HTML and CSS pages? How do I deploy them on to a Tomcat server?
Thanks.
There is no real need to create a war to run it from Tomcat. You can follow these steps
Create a folder in webapps folder e.g. MyApp
Put your html and css in that folder and name the html file, which you want to be the starting page for your application, index.html
Start tomcat and point your browser to url "http://localhost:8080/MyApp". Your index.html page will pop up in the browser
Here's my setup: I am on Ubuntu 9.10.
Now, Here's what I did.
Create a folder named "tomcat6-myapp" in /usr/share.
Create a folder "myapp" under /usr/share/tomcat6-myapp.
Copy the HTML file (that I need to deploy) to /usr/share/tomcat6-myapp/myapp. It must be named index.html.
Go to /etc/tomcat6/Catalina/localhost.
Create an xml file "myapp.xml" (i guess it must have the same name as the name of the folder in step 2) inside /etc/tomcat6/Catalina/localhost with the following contents.
< Context path="/myapp" docBase="/usr/share/tomcat6-myapp/myapp" />
This xml is called the 'Deployment Descriptor' which Tomcat reads and automatically deploys your app named "myapp".
Now go to http://localhost:8080/myapp in your browser - the index.html gets picked up by tomcat and is shown.
I hope this helps!
Here's my step in Ubuntu 16.04 and Tomcat 8.
Copy folder /var/lib/tomcat8/webapps/ROOT to your folder.
cp -r /var/lib/tomcat8/webapps/ROOT /var/lib/tomcat8/webapps/{yourfolder}
Add your html, css, js, to your folder.
Open "http://localhost:8080/{yourfolder}" in browser
Notes:
If you using chrome web browser and did wrong folder before, then clean web browser's cache(or change another name) otherwise (sometimes) it always 404.
The folder META-INF with context.xml is needed.
If you want to create a .war file you can deploy to a Tomcat instance using the Manager app, create a folder, put all your files in that folder (including an index.html file) move your terminal window into that folder, and execute the following command:
zip -r <AppName>.war *
I've tested it with Tomcat 8 on the Mac, but it should work anywhere
(Answers are pretty old, so here's what worked for me on Ubuntu 20.04 Tomcat9)
As root
cd /var/lib/tomcat9/webapps
mkdir -p myapp
cd myapp
cat >>index.html
<html><body>MY SIMPLE PAGE </body></html>
control-D # Press CONTROL+D to exit 'cat', create the file 'index.html'
systemctl restart tomcat9
In browser, use URL: http://127.0.0.1/myapp
(Of course, you can make page fancier, add CSS, etc., etc.)
I struggled a bit with older version of Apache Tomcat (7.0.68) running on Windows Server 2012, but this worked for me after a little bit of experimenting:
Create app folder with your static files (HTML, JS, CSS, assets, etc.).
Inside the folder create META-INF folder and add empty MANIFEST.MF.
Optionally zip the app folder and change the extension to .war.
Upload your app to Tomcat's webapps folder, either as a .war or just folder with your files.
Turned out, that META-INF with empty MANIFEST.MF file is enough for Tomcat to serve the app. No need to add WEB-INF or anything else (at least for my version of Tomcat).
Folder structure:
MyApp (folder)
|--index.html
|--app.js
|--app.css
|--assets (folder)
|--logo.png
|--...
|--META-INF (folder)
|--MANIFEST.MF (empty file)