Posts

java - Eclipse Maven project to Dynamic Web Project layout -

I am used to the layout given in eclipse, in which all your Java code inside eclipse, your JSP files, Web-INF has the rights under the WebContent folder and within the web-conferencing folder. Also, the output folder is hidden from the project tree. Maven has its own format that makes me feel confusing, because it creates some test folders under its target folder and source / main / Java folder and target ... Is there a way to create a Maven project? And is it using the dynamic web project project tree layout? I tried to replace the deployment assembly entries to match the dynamic web project and updated Java build path SRC and updates to match the dynamic web project one, but when I run / Installing, I get a weird, secret unpleasant error. Can you provide me with detailed descriptions about how to do it properly? The concept of archetypes to use is in Maven's concept for you The project is like a template that you consider yourself by Maven. mvn archetype: generat...

TFS2010 build - how to run debug with unit tests before release build -

We are working to fix the automated build process using TFS 2010. During the development, we use a special configuration to run our unit test. During the construction, it makes sense to do the following: compile the application in Unitatest configuration and run the unit test. If all is there, then run and deploy the build in the Release configuration. The reason behind the above suggestion is that we are using the config file change for some settings. However, I can match them with Build Server without the need for a separate set. I also wonder whether the above approach is supported in TFS Build or not. I.E: How do you run two combinations in different configurations. Or the following approach is better: compile the app in the Release configuration and run the unit test. If all pass, deploy. Thank you! If you edit your build definition, navigate to Team Explorer and on the process page, you must In "Item to build" parameter will appear. If you expand th...

php - How do I run directory-structured tests in phpunit? -

PHPUnit Docs says that I can move all my tests into a folder and phpunit To execute all of these folders in the same folder: But when I link my link to slim (https://github.com/codeguy/Slim) If you try on copy then it is not work! . I have installed PHPUnit through pears so I do not think anything is weird about it Here's the output: mark @ ubuntu: / project / submodules / Slim $ Phpunit Test PHP Fatal error: 'Exception' PHPUnit_Framework_Exception 'Message' neither can be opened "tests.php" nor "test.php". # 0 /usr/share/php/PHPUnit/TextUI/Command.php(157) ::; __ Construction ('test PHPUnit_Util_Skeleton_Test- & gt; /usr/share/php/PHPUnit/Util/Skeleton/Test.php:102' in stack trace ',' ') # 1 / usr / share / php / PHPUnit / TextUI / Command Php (129): PHPUnit_TextUI_Command-> Run (array, true) # 2 / usr / bin / PHPUnit (49): PHPUnit_TextUI_Command :: main () # 3 {main} throw at /usr/share/php/PHPUnit/Util/Ske...

Compiler error - iOS "expected ")" before "Question -

What's wrong with the following code? Xcode 4 is not compiling because of the "question" with two method declarations a "hope") question "" first ", message, as indicated in the code below given the code in the query question compiled And this code is already working. I have made some changes to the question but behind them try to figure out the error in this compile time #import & Lt; Foundation / Foundation.h & gt; #import "Question H" @interface AppState: NSObject {selectedAnsw er int i; int correctAnswers; integer currentQuestionNumber; // this question will be included in the hash table objects NSMutableDictionary * questionHash;} @property (nonatomic) integer chosenAnswer; @property (nonatomic) correctAnswers int i; @property (nonatomic) integer currentQuestionNumber ; maintaining @property (nonatomic,) NSDictionary * questionHash; - (void) PrintQuestions; - (void) PrintDescription; - (void) addQuestion: (question) Q...

r - Make a repeating alpha-numeric list -

I want to create a list like this: "A001: A048", " B001: B048 ", ...," Z001: Z048 "," AA 001: AA 048 "," BB1001: BB486 ", ... ... I saw, but did not understand Found c (sprintf ("% S001:% s048", letter, letter) Sprintf ("% s% S001:% s% s048", letter, letter, letter, letter)) with "indexed replacement" (with my period) An example is sprintf : external (letter, 1:26, fun = sprintf, fmt = "% 1 $ s% 1 $ s% 2 $ 03d: % 1 $ s% 1 $ s% 2 $ 03d) # [, 1] [, 2] [, 3] [, 4] [, 5] [1,] "AA001: AA001" "AA002: AA002" "AA003 : AA003 "" AA004: AA004 "" AA005: AA005 "[2,]" BB001: BB001 "" BB002: BB002 "" BB003: BB003 "" BB004: BB004 "" BB005: BB005 "[3,]" CC001: CC001 "" CC2003: CC002 "" CC003: CC003 "" CC004: CC004 "" CC005: CC005 "[4,]" DD001: ...

sql server - Full outer join on one criteria, inner join on another -

Let me include the header and extension rows in a result set Required: (sample DDL and insert ): Order : OrderID Order Date Buy Currency IDsMount BuyRacket ===================================== ====== ========== 1 2011-09-01 15: 57: 00.000 7 12173.60 1.243893 1 2011-09-01 15: 57: 00.000 9 69.48 1 ORDERDETAILS : OrderID CurrencyID SellAmount SellRate ======= ========== ===== ===== ==================================================================== I Hen OrderID and CurrencyID would like to add to / would like: OrderID CurrencyID BuyAmount BuyRate SellAmount SellRate ======= = =============================================================== , 243893 10000 1 1 8 Zero zero 12,384 .9638 1 9 69.48 1 Zero zero sample script - Use scratch - a temporary `command 'And' Order Ls` tables: IF OBJECT_ID ('tempdb. # Order') & gt; 0 drop table #orders table #orders Create (OrderID zero not int, OrderDate datetime NULL, CurrencyID not int, BuyAmo...

java - How to get thread debug information from running production Tomcat web application? -

We have a production web application that looks like keeping a thread in a bunch of tasks, and the CPU Running and average weight. I know what the problem is - our DWR service is very large for some Javascript object responses. The problem is that I do not know which service call is producing data in this large quantity, because thread is out of any of my codes (this is in DWR servlet which changes my return value to outbound javascript object Does ... otherwise I see my service method in the thread dump). Although I do not have to know about DWR to help, because my question is: Is this a way for me to have a posted web application (Tomcat 6 ) To look at and see what kind of situation is in a thread, like variable values ​​etc? This would be true if I originally take a "debug snapshot" of threads, as if I had a breakpoint in debug mode during local development, but with any solution I should see or print that something would be useful. . UPDATE It is best to res...